Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001778/0.001778, allocations: 187.7 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 43.94 kB / 370.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.265, allocations: 52.18 MB / 423.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003574/0.2685, allocations: 2.124 MB / 425.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.2697, allocations: 0.5615 MB / 425.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.2698, allocations: 4 kB / 425.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.2699, allocations: 27.61 kB / 425.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002817/0.2702, allocations: 83.41 kB / 425.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000266/0.2705, allocations: 67.84 kB / 425.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003285/0.2708, allocations: 279 kB / 426.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.2709, allocations: 49.12 kB / 426.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000169/0.2711, allocations: 123.3 kB / 426.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.2713, allocations: 127.3 kB / 426.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.739e-05/0.2713, allocations: 24 kB / 426.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.891e-05/0.2714, allocations: 20 kB / 426.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.851e-05/0.2715, allocations: 63.7 kB / 426.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.2716, allocations: 115.2 kB / 426.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.2719, allocations: 268.9 kB / 427 MB, free: 10.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2719, allocations: 0 / 427 MB, free: 10.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2719, allocations: 0 / 427 MB, free: 10.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2719, allocations: 0 / 427 MB, free: 10.54 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.00109/0.273, allocations: 0.5515 MB / 427.5 MB, free: 9.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.273, allocations: 8.031 kB / 427.5 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.421e-05/0.2731, allocations: 32.75 kB / 427.6 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004039/0.2735, allocations: 262.7 kB / 427.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.2735, allocations: 16.34 kB / 427.8 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.132e-05/0.2736, allocations: 24 kB / 427.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006399/0.2742, allocations: 367 kB / 428.2 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.2742, allocations: 0 / 428.2 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.2742, allocations: 8 kB / 428.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.2742, allocations: 0 / 428.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002086/0.2744, allocations: 95.88 kB / 428.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006331/0.2751, allocations: 437.3 kB / 428.8 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006976/0.2758, allocations: 303.9 kB / 429 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.276, allocations: 122.6 kB / 429.2 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.97e-05/0.276, allocations: 15.84 kB / 429.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.2761, allocations: 42.5 kB / 429.2 MB, free: 8.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.743e-06/0.2761, allocations: 0 / 429.2 MB, free: 8.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.002218/0.2783, allocations: 1.141 MB / 430.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.2784, allocations: 139.6 kB / 430.5 MB, free: 6.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003724/0.2788, allocations: 332.6 kB / 430.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.2788, allocations: 33.7 kB / 430.9 MB, free: 6.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.2789, allocations: 145.1 kB / 431 MB, free: 6.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.604e-05/0.279, allocations: 59.55 kB / 431.1 MB, free: 6.211 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.785e-05/0.2791, allocations: 62.14 kB / 431.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.2792, allocations: 346.8 kB / 431.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.2793, allocations: 68.83 kB / 431.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003245/0.2797, allocations: 307.8 kB / 431.8 MB, free: 5.312 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004711/0.2801, allocations: 399.2 kB / 432.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.2801, allocations: 4 kB / 432.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006164/0.2808, allocations: 401 kB / 432.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.2808, allocations: 8.656 kB / 432.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.2808, allocations: 8 kB / 432.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-05/0.2808, allocations: 12 kB / 432.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002591/0.2811, allocations: 95.77 kB / 432.7 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/0.2811, allocations: 12.59 kB / 432.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.2813, allocations: 31.94 kB / 432.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.761e-05/0.2813, allocations: 27.94 kB / 432.8 MB, free: 4.215 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001668/0.2815, allocations: 161.6 kB / 433 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004752/0.282, allocations: 289 kB / 433.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006423/0.2826, allocations: 365 kB / 433.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.2826, allocations: 8 kB / 433.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2826, allocations: 0 / 433.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2826, allocations: 0 / 433.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003021/0.2829, allocations: 201.2 kB / 433.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2829, allocations: 4 kB / 433.8 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.2835, allocations: 119.8 kB / 433.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.2835, allocations: 8.125 kB / 433.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.2835, allocations: 8 kB / 433.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.2835, allocations: 0 / 433.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.165e-06/0.2835, allocations: 4 kB / 433.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.2846, allocations: 0.6994 MB / 434.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.1e-05/0.2847, allocations: 43.83 kB / 434.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.654e-05/0.2847, allocations: 19.94 kB / 434.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.285, allocations: 8 kB / 434.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.285, allocations: 11.98 kB / 434.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.285, allocations: 8 kB / 434.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002629/0.2853, allocations: 243.1 kB / 435 MB, free: 1.965 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2853, allocations: 0 / 435 MB, free: 1.965 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004353/0.2857, allocations: 64 kB / 435 MB, free: 1.902 MB / 334.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 (43): * Single equations (assignments): 43 * 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.0001342/0.2859, allocations: 111.2 kB / 435.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005351/0.2864, allocations: 285.3 kB / 435.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2864, allocations: 0 / 435.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.352e-05/0.2865, allocations: 32.42 kB / 435.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007475/0.2872, allocations: 200.2 kB / 435.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.2885, allocations: 0.7408 MB / 436.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/0.2888, allocations: 197.6 kB / 436.6 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.641e-05/0.2888, allocations: 39.25 kB / 436.6 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.182e-05/0.2889, allocations: 27.44 kB / 436.6 MB, free: 232 kB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2889, allocations: 0 / 436.6 MB, free: 232 kB / 334.1 MB Notification: Performance of Templates: time 0.008919/0.2979, allocations: 4.08 MB / 440.7 MB, free: 12.18 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.715707596391439]