Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009367/0.0009366, allocations: 170.9 kB / 16.8 MB, free: 5.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.4 MB / 223 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007681/0.0007682, allocations: 94.41 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08162/0.08162, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006164/0.0006168, allocations: 16 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1174, allocations: 50.37 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.338/0.4554, allocations: 80.23 MB / 0.5116 GB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/0.4558, allocations: 73.61 kB / 0.5116 GB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00649/0.4623, allocations: 2.61 MB / 0.5142 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4623, allocations: 4 kB / 0.5142 GB, free: 11.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.4623, allocations: 7.844 kB / 0.5142 GB, free: 11.91 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005193/0.4629, allocations: 410.2 kB / 0.5146 GB, free: 11.5 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.4629, allocations: 11.34 kB / 0.5146 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.288e-05/0.463, allocations: 14.62 kB / 0.5146 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.4632, allocations: 211.9 kB / 0.5148 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.4633, allocations: 16.03 kB / 0.5148 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.247e-05/0.4633, allocations: 15.53 kB / 0.5148 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004425/0.4637, allocations: 229.2 kB / 0.515 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.4638, allocations: 192 / 0.515 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.4638, allocations: 10.97 kB / 0.5151 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.4638, allocations: 3.656 kB / 0.5151 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.4641, allocations: 97.45 kB / 0.5152 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006396/0.4647, allocations: 0.5948 MB / 0.5157 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.465, allocations: 157.7 kB / 0.5159 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.4652, allocations: 74.89 kB / 0.516 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.4652, allocations: 11.42 kB / 0.516 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.4652, allocations: 34.55 kB / 0.516 GB, free: 10.37 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.4653, allocations: 3.938 kB / 0.516 GB, free: 10.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004733/0.4657, allocations: 191 kB / 0.5162 GB, free: 10.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/0.4658, allocations: 126 kB / 0.5163 GB, free: 10.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.029e-05/0.4659, allocations: 136.4 kB / 0.5164 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.4659, allocations: 29.64 kB / 0.5165 GB, free: 10.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.329e-05/0.466, allocations: 119.4 kB / 0.5166 GB, free: 9.906 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.466, allocations: 27.23 kB / 0.5166 GB, free: 9.891 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-06/0.466, allocations: 0 / 0.5166 GB, free: 9.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.716e-05/0.4661, allocations: 325.6 kB / 0.5169 GB, free: 9.574 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.4662, allocations: 45.09 kB / 0.517 GB, free: 9.562 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.4663, allocations: 143.4 kB / 0.5171 GB, free: 9.418 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/0.4667, allocations: 290.4 kB / 0.5174 GB, free: 9.156 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.4668, allocations: 3.906 kB / 0.5174 GB, free: 9.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00034/0.4671, allocations: 213.6 kB / 0.5176 GB, free: 9.066 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.4671, allocations: 3.844 kB / 0.5176 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4671, allocations: 3.969 kB / 0.5176 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.4672, allocations: 15.62 kB / 0.5176 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.4673, allocations: 46.69 kB / 0.5176 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.4673, allocations: 11.77 kB / 0.5177 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.4674, allocations: 26.48 kB / 0.5177 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.4675, allocations: 15.34 kB / 0.5177 GB, free: 9.023 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = PI.y_start. 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 () * Number of clocked states: 1 (PI.x) * 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 9.982e-05/0.4676, allocations: 129.1 kB / 0.5178 GB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.4677, allocations: 90.2 kB / 0.5179 GB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.4678, allocations: 19.19 kB / 0.5179 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.4678, allocations: 3.844 kB / 0.5179 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4678, allocations: 0 / 0.5179 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.4678, allocations: 0 / 0.5179 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002241/0.468, allocations: 212.3 kB / 0.5181 GB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.468, allocations: 4 kB / 0.5181 GB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.4682, allocations: 51.89 kB / 0.5182 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.4683, allocations: 0 / 0.5182 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.4683, allocations: 3.375 kB / 0.5182 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.4683, allocations: 4 kB / 0.5182 GB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4683, allocations: 0 / 0.5182 GB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004944/0.4688, allocations: 391.7 kB / 0.5186 GB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.613e-05/0.4688, allocations: 96.92 kB / 0.5187 GB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.4689, allocations: 15.81 kB / 0.5187 GB, free: 8.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.469, allocations: 7.984 kB / 0.5187 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.4691, allocations: 4 kB / 0.5187 GB, free: 8.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.4691, allocations: 7.938 kB / 0.5187 GB, free: 8.074 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.548e-05/0.4691, allocations: 106.5 kB / 0.5188 GB, free: 7.977 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4691, allocations: 0 / 0.5188 GB, free: 7.977 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000315/0.4695, allocations: 22.81 kB / 0.5188 GB, free: 7.957 MB / 330.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 () * Number of clocked states: 1 (PI.x) * 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.0001115/0.4696, allocations: 114.6 kB / 0.5189 GB, free: 7.84 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003014/0.4699, allocations: 137.4 kB / 0.5191 GB, free: 7.727 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4699, allocations: 4.062 kB / 0.5191 GB, free: 7.723 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.546e-05/0.47, allocations: 27.17 kB / 0.5191 GB, free: 7.699 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004883/0.4705, allocations: 66.31 kB / 0.5191 GB, free: 7.648 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007815/0.4713, allocations: 0.5099 MB / 0.5196 GB, free: 7.129 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001534/0.4714, allocations: 0.7165 MB / 0.5203 GB, free: 6.387 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.609e-05/0.4715, allocations: 9.094 kB / 0.5204 GB, free: 6.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.29e-05/0.4716, allocations: 15.44 kB / 0.5204 GB, free: 6.363 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4716, allocations: 0 / 0.5204 GB, free: 6.363 MB / 330.7 MB Notification: Performance of Templates: time 0.003837/0.4754, allocations: 1.148 MB / 0.5215 GB, free: 5.238 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches