Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009823/0.0009823, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007809/0.0007809, allocations: 105.4 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.316e-05/1.33e-05, allocations: 0 / 343.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09785, allocations: 51.48 MB / 395.2 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2964/0.3943, allocations: 78.95 MB / 474.1 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/0.3946, allocations: 76.19 kB / 474.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007084/0.4017, allocations: 2.805 MB / 477 MB, free: 11.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4017, allocations: 0 / 477 MB, free: 11.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.4017, allocations: 4 kB / 477 MB, free: 11.22 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004366/0.4022, allocations: 426.4 kB / 477.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.4022, allocations: 8.031 kB / 477.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.179e-05/0.4023, allocations: 18.44 kB / 477.4 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00019/0.4025, allocations: 205.5 kB / 477.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.4025, allocations: 4 kB / 477.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.4025, allocations: 13.69 kB / 477.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001486/0.4027, allocations: 67.05 kB / 477.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.403, allocations: 205.6 kB / 477.9 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.403, allocations: 3.938 kB / 477.9 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.403, allocations: 4 kB / 477.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.403, allocations: 0 / 477.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004832/0.4035, allocations: 0.5634 MB / 478.5 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/0.4038, allocations: 132.8 kB / 478.6 MB, free: 9.656 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.549e-05/0.4038, allocations: 54.08 kB / 478.7 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.4039, allocations: 9.391 kB / 478.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.232e-05/0.4039, allocations: 30.56 kB / 478.7 MB, free: 9.562 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.863e-06/0.4039, allocations: 4 kB / 478.7 MB, free: 9.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002277/0.4041, allocations: 119.7 kB / 478.8 MB, free: 9.461 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.4042, allocations: 106.8 kB / 478.9 MB, free: 9.332 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.099e-05/0.4043, allocations: 139.2 kB / 479.1 MB, free: 9.211 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.4043, allocations: 25.7 kB / 479.1 MB, free: 9.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.417e-05/0.4043, allocations: 122.6 kB / 479.2 MB, free: 9.074 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.4043, allocations: 23.73 kB / 479.2 MB, free: 9.059 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-06/0.4044, allocations: 0 / 479.2 MB, free: 9.059 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/0.4044, allocations: 327.6 kB / 479.6 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.604e-05/0.4044, allocations: 18.44 kB / 479.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.195e-05/0.4045, allocations: 122.5 kB / 479.7 MB, free: 8.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.65e-05/0.4046, allocations: 33.44 kB / 479.7 MB, free: 8.551 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4046, allocations: 4 kB / 479.7 MB, free: 8.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001818/0.4048, allocations: 141.2 kB / 479.9 MB, free: 8.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.4048, allocations: 12.03 kB / 479.9 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.4048, allocations: 5.359 kB / 479.9 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.4048, allocations: 4 kB / 479.9 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.405, allocations: 53.55 kB / 479.9 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.405, allocations: 9.266 kB / 480 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.4051, allocations: 18.98 kB / 480 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.4051, allocations: 12 kB / 480 MB, free: 8.332 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.614e-05/0.4052, allocations: 116 kB / 480.1 MB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.4053, allocations: 84.05 kB / 480.2 MB, free: 8.141 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.441e-05/0.4054, allocations: 19.03 kB / 480.2 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.4054, allocations: 4 kB / 480.2 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4054, allocations: 0 / 480.2 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.4054, allocations: 3.953 kB / 480.2 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001963/0.4056, allocations: 182 kB / 480.4 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.4056, allocations: 5.688 kB / 480.4 MB, free: 7.945 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.4058, allocations: 40.7 kB / 480.4 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.4058, allocations: 0 / 480.4 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.4059, allocations: 5.312 kB / 480.4 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.4059, allocations: 0 / 480.4 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4059, allocations: 3.938 kB / 480.4 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002471/0.4061, allocations: 358.7 kB / 480.8 MB, free: 7.574 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.642e-05/0.4062, allocations: 105.7 kB / 480.9 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.4062, allocations: 5.688 kB / 480.9 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.4064, allocations: 9.453 kB / 480.9 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.864e-05/0.4064, allocations: 10.77 kB / 480.9 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.4064, allocations: 7.062 kB / 480.9 MB, free: 7.438 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.749e-05/0.4065, allocations: 116.4 kB / 481 MB, free: 7.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4065, allocations: 8 kB / 481 MB, free: 7.332 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003096/0.4068, allocations: 20 kB / 481.1 MB, free: 7.312 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001176/0.4069, allocations: 104.9 kB / 481.2 MB, free: 7.203 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001471/0.4071, allocations: 81.17 kB / 481.2 MB, free: 7.145 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4071, allocations: 0 / 481.2 MB, free: 7.145 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.769e-05/0.4071, allocations: 20.12 kB / 481.3 MB, free: 7.129 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.4075, allocations: 56.16 kB / 481.3 MB, free: 7.098 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000495/0.408, allocations: 316.1 kB / 481.6 MB, free: 6.816 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.4082, allocations: 0.7298 MB / 482.4 MB, free: 6.082 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.324e-05/0.4082, allocations: 12.3 kB / 482.4 MB, free: 6.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.896e-05/0.4083, allocations: 19.44 kB / 482.4 MB, free: 6.055 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4083, allocations: 0 / 482.4 MB, free: 6.055 MB / 346.7 MB Notification: Performance of Templates: time 0.003186/0.4115, allocations: 1.096 MB / 483.5 MB, free: 5.293 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches