Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001307/0.001307, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 213.7 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 230.3 MB / 257.9 MB, free: 8.27 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5501,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5501,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 63.89 kB / 378.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3447, allocations: 53.37 MB / 432.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004032/0.3487, allocations: 2.246 MB / 434.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.3503, allocations: 0.6316 MB / 435 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.3505, allocations: 4 kB / 435 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.3507, allocations: 27.61 kB / 435 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000381/0.3511, allocations: 71.42 kB / 435.1 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004061/0.3515, allocations: 71.84 kB / 435.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004463/0.3519, allocations: 283 kB / 435.4 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.3522, allocations: 59.88 kB / 435.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003324/0.3525, allocations: 131.3 kB / 435.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.3528, allocations: 139.2 kB / 435.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.3528, allocations: 20 kB / 435.8 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.483e-05/0.3529, allocations: 24 kB / 435.8 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.353, allocations: 67.67 kB / 435.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.3532, allocations: 127.1 kB / 436 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004499/0.3536, allocations: 262.4 kB / 436.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.3536, allocations: 4 kB / 436.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3536, allocations: 0 / 436.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.3536, allocations: 0 / 436.3 MB, free: 2.91 MB / 334.1 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.00125/0.3549, allocations: 0.5515 MB / 436.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.3549, allocations: 12.03 kB / 436.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.282e-05/0.355, allocations: 36.7 kB / 436.9 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.3555, allocations: 250.8 kB / 437.1 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.3555, allocations: 20.41 kB / 437.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.693e-05/0.3555, allocations: 16 kB / 437.1 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007192/0.3563, allocations: 377 kB / 437.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3563, allocations: 0 / 437.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.3563, allocations: 12 kB / 437.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3563, allocations: 4 kB / 437.5 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002145/0.3565, allocations: 91.89 kB / 437.6 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007997/0.3573, allocations: 0.4967 MB / 438.1 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007276/0.358, allocations: 307.2 kB / 438.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002425/0.3583, allocations: 138.2 kB / 438.5 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.115e-05/0.3583, allocations: 0 / 438.5 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.3584, allocations: 38.56 kB / 438.6 MB, free: 436 kB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.143e-06/0.3584, allocations: 0 / 438.6 MB, free: 436 kB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.00243/0.3608, allocations: 1.187 MB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.3609, allocations: 143.2 kB / 439.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003835/0.3613, allocations: 328.7 kB / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.3613, allocations: 33.7 kB / 440.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3614, allocations: 141.1 kB / 440.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.004e-05/0.3615, allocations: 51.67 kB / 440.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.853e-05/0.3616, allocations: 74.12 kB / 440.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3618, allocations: 346.8 kB / 440.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.3619, allocations: 72.83 kB / 440.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.3622, allocations: 314.8 kB / 441.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005199/0.3627, allocations: 413 kB / 441.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3628, allocations: 3.938 kB / 441.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006648/0.3634, allocations: 417 kB / 442.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.3634, allocations: 15.88 kB / 442.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.3635, allocations: 8 kB / 442.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.3635, allocations: 12 kB / 442.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.3637, allocations: 100.5 kB / 442.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/0.3638, allocations: 12.02 kB / 442.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.364, allocations: 31.94 kB / 442.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.364, allocations: 31.98 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001813/0.3642, allocations: 168.9 kB / 442.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004845/0.3647, allocations: 296.6 kB / 442.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006742/0.3654, allocations: 383.4 kB / 443.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3654, allocations: 4 kB / 443.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3654, allocations: 4 kB / 443.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3654, allocations: 7.984 kB / 443.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004071/0.3658, allocations: 288.4 kB / 443.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3658, allocations: 0 / 443.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005706/0.3663, allocations: 131.8 kB / 443.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.3664, allocations: 0 / 443.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.3664, allocations: 12 kB / 443.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.3664, allocations: 4 kB / 443.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3664, allocations: 0 / 443.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.3675, allocations: 0.7227 MB / 444.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.312e-05/0.3675, allocations: 43.77 kB / 444.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.478e-05/0.3676, allocations: 12 kB / 444.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.3678, allocations: 8 kB / 444.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.3679, allocations: 15.98 kB / 444.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.3679, allocations: 12 kB / 444.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002697/0.3682, allocations: 247 kB / 444.6 MB, free: 9.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3682, allocations: 0 / 444.6 MB, free: 9.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004467/0.3686, allocations: 64 kB / 444.6 MB, free: 9.914 MB / 350.1 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 (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001402/0.3688, allocations: 111.1 kB / 444.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005586/0.3693, allocations: 285.8 kB / 445 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3693, allocations: 0 / 445 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.389e-05/0.3694, allocations: 31.92 kB / 445.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007567/0.3702, allocations: 201.7 kB / 445.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.3715, allocations: 0.7365 MB / 446 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.372, allocations: 0.8113 MB / 446.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.864e-05/0.372, allocations: 35.27 kB / 446.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.708e-05/0.3721, allocations: 35.42 kB / 446.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3721, allocations: 0 / 446.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of Templates: time 0.008821/0.381, allocations: 3.944 MB / 450.8 MB, free: 3.672 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.907807742245495]