Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.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.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|filter.y|inverseBlockConstraints.y1|mixingUnit.c|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit") translateModel(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|filter.y|inverseBlockConstraints.y1|mixingUnit.c|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001471/0.001471, allocations: 170.9 kB / 16.8 MB, free: 4.902 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.498/1.498, allocations: 205.4 MB / 223 MB, free: 8.941 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.000767/0.000767, allocations: 86.39 kB / 271.3 MB, free: 8.234 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.08878/0.08878, allocations: 12.61 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004123/0.0004128, allocations: 15.94 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09405/0.09448, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3099/0.4044, allocations: 80.11 MB / 0.5114 GB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.4047, allocations: 75.09 kB / 0.5115 GB, free: 12.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009815/0.4145, allocations: 3.691 MB / 0.5151 GB, free: 11.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4146, allocations: 0 / 0.5151 GB, free: 11.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.012e-05/0.4146, allocations: 3.969 kB / 0.5151 GB, free: 11.49 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008859/0.4155, allocations: 0.5961 MB / 0.5157 GB, free: 10.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.4155, allocations: 7.688 kB / 0.5157 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.019e-05/0.4156, allocations: 32.03 kB / 0.5157 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.416, allocations: 320.9 kB / 0.516 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.416, allocations: 8 kB / 0.516 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.4161, allocations: 22.05 kB / 0.5161 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005283/0.4166, allocations: 382.9 kB / 0.5164 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.4166, allocations: 0 / 0.5164 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.4166, allocations: 3.625 kB / 0.5164 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.4167, allocations: 3.812 kB / 0.5164 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.4168, allocations: 92.89 kB / 0.5165 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006548/0.4175, allocations: 0.5376 MB / 0.517 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005585/0.4181, allocations: 307.4 kB / 0.5173 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.4183, allocations: 145.3 kB / 0.5175 GB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.4183, allocations: 15.61 kB / 0.5175 GB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.66e-05/0.4184, allocations: 34.5 kB / 0.5175 GB, free: 9.645 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 2.004e-06/0.4184, allocations: 0 / 0.5175 GB, free: 9.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.001938/0.4203, allocations: 1.286 MB / 0.5188 GB, free: 8.523 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/0.4204, allocations: 136.8 kB / 0.5189 GB, free: 8.379 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.4207, allocations: 326.2 kB / 0.5192 GB, free: 8.121 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.4207, allocations: 37.2 kB / 0.5193 GB, free: 8.082 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.329e-05/0.4208, allocations: 151.4 kB / 0.5194 GB, free: 7.977 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.735e-05/0.4209, allocations: 51.08 kB / 0.5195 GB, free: 7.941 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/0.4209, allocations: 6.125 kB / 0.5195 GB, free: 7.941 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.845e-05/0.421, allocations: 346 kB / 0.5198 GB, free: 7.609 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.4211, allocations: 73.17 kB / 0.5199 GB, free: 7.559 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.4213, allocations: 298.4 kB / 0.5201 GB, free: 7.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.4217, allocations: 401.6 kB / 0.5205 GB, free: 6.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.4217, allocations: 4 kB / 0.5205 GB, free: 6.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005127/0.4222, allocations: 402.2 kB / 0.5209 GB, free: 6.398 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.4222, allocations: 8 kB / 0.5209 GB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.4222, allocations: 15.88 kB / 0.5209 GB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.4223, allocations: 15.94 kB / 0.521 GB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.4225, allocations: 91.66 kB / 0.521 GB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.4225, allocations: 15.92 kB / 0.5211 GB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.4227, allocations: 26.25 kB / 0.5211 GB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.4228, allocations: 23.56 kB / 0.5211 GB, free: 6.219 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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 0.0001298/0.4229, allocations: 167.8 kB / 0.5213 GB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003718/0.4233, allocations: 287.7 kB / 0.5215 GB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005188/0.4238, allocations: 370.5 kB / 0.5219 GB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.4238, allocations: 4 kB / 0.5219 GB, free: 5.598 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4238, allocations: 0 / 0.5219 GB, free: 5.598 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4238, allocations: 11.98 kB / 0.5219 GB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003071/0.4241, allocations: 316.7 kB / 0.5222 GB, free: 5.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.4242, allocations: 4 kB / 0.5222 GB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005103/0.4247, allocations: 122.6 kB / 0.5223 GB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.4247, allocations: 4 kB / 0.5223 GB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.4247, allocations: 9 kB / 0.5223 GB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.4247, allocations: 4 kB / 0.5223 GB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4247, allocations: 3.938 kB / 0.5223 GB, free: 5.141 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008584/0.4256, allocations: 0.692 MB / 0.523 GB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.4257, allocations: 123.7 kB / 0.5231 GB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.013e-05/0.4258, allocations: 18.86 kB / 0.5232 GB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.426, allocations: 11.5 kB / 0.5232 GB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.179e-05/0.4261, allocations: 11.48 kB / 0.5232 GB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.4261, allocations: 8 kB / 0.5232 GB, free: 4.422 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002102/0.4263, allocations: 245.2 kB / 0.5234 GB, free: 4.238 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4263, allocations: 0 / 0.5234 GB, free: 4.238 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004126/0.4268, allocations: 66.44 kB / 0.5235 GB, free: 4.188 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 ($DER.invMixingUnit.T,$DER.invMixingUnit.c,$DER.filter.x[1],invMixingUnit.c,invMixingUnit.T,filter.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 43 * 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.0001148/0.4269, allocations: 109.7 kB / 0.5236 GB, free: 4.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004234/0.4273, allocations: 285 kB / 0.5239 GB, free: 3.859 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4273, allocations: 4 kB / 0.5239 GB, free: 3.855 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.029e-05/0.4274, allocations: 35.36 kB / 0.5239 GB, free: 3.828 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006504/0.4281, allocations: 209.1 kB / 0.5241 GB, free: 3.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.4291, allocations: 0.8461 MB / 0.5249 GB, free: 2.879 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.4294, allocations: 0.8062 MB / 0.5257 GB, free: 2.051 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.4295, allocations: 35.27 kB / 0.5257 GB, free: 2.016 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.695e-05/0.4296, allocations: 34.31 kB / 0.5258 GB, free: 1.984 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4296, allocations: 0 / 0.5258 GB, free: 1.984 MB / 330.7 MB Notification: Performance of Templates: time 0.007113/0.4367, allocations: 3.099 MB / 0.5288 GB, free: 14.91 MB / 346.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches