Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9501/0.9501, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5501,variableFilter="time|filter.x.[0-9,]+.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5501,variableFilter="time|filter.x.[0-9,]+.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 3.938 kB / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.638e-05/2.807e-05, allocations: 6.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004037/0.004065, allocations: 2.212 MB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.005372, allocations: 0.6042 MB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.005541, allocations: 0 / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.005666, allocations: 27.61 kB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.005974, allocations: 79.3 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.006253, allocations: 83.77 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003416/0.006595, allocations: 279 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.006737, allocations: 49.12 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000294/0.007031, allocations: 163.5 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.007194, allocations: 107.5 kB / 276.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.007242, allocations: 24 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.543e-05/0.007277, allocations: 20 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.211e-05/0.007349, allocations: 63.69 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.987e-05/0.007439, allocations: 87.67 kB / 276.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002472/0.007687, allocations: 171.2 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.007689, allocations: 3.938 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.00769, allocations: 0 / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.007696, allocations: 0 / 276.9 MB, free: 13.57 MB / 266.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.0008729/0.008568, allocations: 0.6514 MB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.008603, allocations: 8.031 kB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.00868, allocations: 44.7 kB / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.009021, allocations: 265.5 kB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.009036, allocations: 12.66 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.877e-05/0.009075, allocations: 16.38 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005067/0.009582, allocations: 312.5 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.00959, allocations: 0 / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.009606, allocations: 4 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.009615, allocations: 4 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.009747, allocations: 50.34 kB / 278.3 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005758/0.01032, allocations: 0.5099 MB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000564/0.01089, allocations: 269.3 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.01105, allocations: 95.11 kB / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.01107, allocations: 11.86 kB / 279.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.0111, allocations: 41.33 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.0111, allocations: 0 / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=38): time 0.002046/0.01315, allocations: 0.9714 MB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.051e-05/0.01324, allocations: 130.8 kB / 280.3 MB, free: 9.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.01357, allocations: 354.3 kB / 280.6 MB, free: 9.562 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.01359, allocations: 33.7 kB / 280.7 MB, free: 9.523 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.0137, allocations: 191.8 kB / 280.9 MB, free: 9.332 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/0.01374, allocations: 43.84 kB / 280.9 MB, free: 9.289 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.599e-05/0.01379, allocations: 36.03 kB / 280.9 MB, free: 9.246 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.01395, allocations: 0.5118 MB / 281.4 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.334e-05/0.014, allocations: 16 kB / 281.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.98e-05/0.01409, allocations: 97.41 kB / 281.6 MB, free: 8.578 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.01423, allocations: 125.4 kB / 281.7 MB, free: 8.422 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.01423, allocations: 7.938 kB / 281.7 MB, free: 8.414 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002357/0.01447, allocations: 149.3 kB / 281.8 MB, free: 8.262 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.01448, allocations: 10.19 kB / 281.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.01449, allocations: 0 / 281.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.0145, allocations: 7.938 kB / 281.8 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.01464, allocations: 35.92 kB / 281.9 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.01464, allocations: 224 / 281.9 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.01475, allocations: 27.88 kB / 281.9 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.01477, allocations: 4 kB / 281.9 MB, free: 8.18 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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.0001253/0.01489, allocations: 172.5 kB / 282.1 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004318/0.01532, allocations: 234.7 kB / 282.3 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005009/0.01582, allocations: 284.1 kB / 282.6 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.01583, allocations: 11.94 kB / 282.6 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.01584, allocations: 0 / 282.6 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.01584, allocations: 4 kB / 282.6 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.01615, allocations: 208.5 kB / 282.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.01615, allocations: 0 / 282.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004741/0.01662, allocations: 119.9 kB / 282.9 MB, free: 7.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.01663, allocations: 3.984 kB / 282.9 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.01665, allocations: 8 kB / 282.9 MB, free: 7.094 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.01665, allocations: 4 kB / 282.9 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.01666, allocations: 3.938 kB / 282.9 MB, free: 7.086 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007637/0.01742, allocations: 0.6205 MB / 283.6 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.398e-05/0.01749, allocations: 51.66 kB / 283.6 MB, free: 6.387 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.17e-05/0.01755, allocations: 16 kB / 283.6 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.01777, allocations: 8 kB / 283.6 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.319e-05/0.0178, allocations: 15.92 kB / 283.7 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.01782, allocations: 8 kB / 283.7 MB, free: 6.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002404/0.01806, allocations: 259 kB / 283.9 MB, free: 6.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01806, allocations: 0 / 283.9 MB, free: 6.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003645/0.01843, allocations: 48 kB / 284 MB, free: 6.043 MB / 266.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 (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.0001159/0.01854, allocations: 115.2 kB / 284.1 MB, free: 5.922 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002706/0.01882, allocations: 142.2 kB / 284.2 MB, free: 5.781 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.01882, allocations: 0 / 284.2 MB, free: 5.781 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.807e-05/0.01885, allocations: 27.61 kB / 284.2 MB, free: 5.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006229/0.01948, allocations: 148.3 kB / 284.4 MB, free: 5.605 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.02075, allocations: 0.6482 MB / 285 MB, free: 4.918 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.404e-05/0.02084, allocations: 121 kB / 285.1 MB, free: 4.777 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.632e-05/0.02091, allocations: 26.97 kB / 285.2 MB, free: 4.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.483e-05/0.02099, allocations: 28.48 kB / 285.2 MB, free: 4.719 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02099, allocations: 4 kB / 285.2 MB, free: 4.715 MB / 266.7 MB Notification: Performance of Templates: time 0.00739/0.02838, allocations: 3.537 MB / 288.7 MB, free: 1.199 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9300290108658373]