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.001116/0.001116, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001156/0.001156, allocations: 150.1 kB / 24.81 MB, free: 9.285 MB / 18.57 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.015/1.015, allocations: 173.3 MB / 201.4 MB, free: 9.191 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|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.[0-9,]+.|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 1.463e-06/1.463e-06, allocations: 0 / 268.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.26e-05, allocations: 6.25 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002834/0.002857, allocations: 2.16 MB / 270.6 MB, free: 4.004 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.003879, allocations: 0.5963 MB / 271.1 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.004011, allocations: 7.938 kB / 271.2 MB, free: 3.398 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.004131, allocations: 23.67 kB / 271.2 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002503/0.004381, allocations: 79.36 kB / 271.3 MB, free: 3.297 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.00462, allocations: 75.75 kB / 271.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002612/0.004881, allocations: 290.9 kB / 271.6 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.004999, allocations: 41.16 kB / 271.7 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.005191, allocations: 171.4 kB / 271.8 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.005311, allocations: 103.6 kB / 271.9 MB, free: 2.621 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.398e-05/0.005345, allocations: 24 kB / 271.9 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.652e-05/0.005371, allocations: 20 kB / 272 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.215e-05/0.005433, allocations: 63.62 kB / 272 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.096e-05/0.005494, allocations: 79.69 kB / 272.1 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.005686, allocations: 175.2 kB / 272.3 MB, free: 2.266 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.00569, allocations: 0 / 272.3 MB, free: 2.266 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.00569, allocations: 0 / 272.3 MB, free: 2.266 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.005695, allocations: 0 / 272.3 MB, free: 2.266 MB / 250.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.0006499/0.006344, allocations: 0.6396 MB / 272.9 MB, free: 1.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.006378, allocations: 8.922 kB / 272.9 MB, free: 1.582 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.2e-05/0.00643, allocations: 44.75 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.006647, allocations: 253.5 kB / 273.2 MB, free: 1.266 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.006658, allocations: 8.656 kB / 273.2 MB, free: 1.258 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/0.006684, allocations: 16.38 kB / 273.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000316/0.007, allocations: 287.4 kB / 273.5 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.007008, allocations: 0 / 273.5 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.007019, allocations: 4 kB / 273.5 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.007025, allocations: 4 kB / 273.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.466e-05/0.007079, allocations: 39.89 kB / 273.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003976/0.007477, allocations: 486.6 kB / 274 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.007803, allocations: 247.9 kB / 274.3 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.339e-05/0.007886, allocations: 89.97 kB / 274.4 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.007912, allocations: 4 kB / 274.4 MB, free: 0 / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.007949, allocations: 49.31 kB / 274.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.363e-06/0.00795, allocations: 0 / 274.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=38): time 0.00108/0.009029, allocations: 0.8022 MB / 275.2 MB, free: 15.08 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.928e-05/0.009109, allocations: 150.4 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.009292, allocations: 334.2 kB / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.009311, allocations: 29.7 kB / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.707e-05/0.009388, allocations: 195.8 kB / 275.9 MB, free: 14.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.42e-05/0.009422, allocations: 43.66 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.265e-05/0.009465, allocations: 35.38 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.009597, allocations: 0.5156 MB / 276.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.12e-05/0.009618, allocations: 12.12 kB / 276.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/0.009926, allocations: 97.45 kB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.769e-05/0.01001, allocations: 121.3 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.01001, allocations: 0 / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001356/0.01015, allocations: 145.3 kB / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.01016, allocations: 4 kB / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.01017, allocations: 0 / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.01018, allocations: 4 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.719e-05/0.01026, allocations: 39.92 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.01026, allocations: 7.938 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.614e-05/0.01032, allocations: 7.953 kB / 276.9 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.01033, allocations: 8 kB / 277 MB, free: 13.21 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 9.535e-05/0.01042, allocations: 176.7 kB / 277.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002236/0.01065, allocations: 209.2 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002673/0.01091, allocations: 264.8 kB / 277.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.01092, allocations: 4 kB / 277.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.01092, allocations: 3.938 kB / 277.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.01092, allocations: 3.984 kB / 277.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.01111, allocations: 169.1 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.01111, allocations: 3.984 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/0.01139, allocations: 127.8 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.01139, allocations: 0 / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.0114, allocations: 8 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.0114, allocations: 0 / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.01141, allocations: 4 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001959/0.0116, allocations: 374.7 kB / 278.3 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.01165, allocations: 39.75 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.395e-05/0.01168, allocations: 15.98 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.01179, allocations: 8 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.371e-05/0.01181, allocations: 8.031 kB / 278.3 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.01183, allocations: 19.92 kB / 278.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001058/0.01193, allocations: 230.9 kB / 278.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01193, allocations: 0 / 278.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002172/0.01215, allocations: 48 kB / 278.6 MB, free: 11.45 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 9.613e-05/0.01225, allocations: 115.1 kB / 278.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001584/0.0124, allocations: 127.6 kB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01241, allocations: 4.062 kB / 278.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.524e-05/0.01243, allocations: 23.61 kB / 278.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.01285, allocations: 148.3 kB / 279 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008496/0.0137, allocations: 0.6398 MB / 279.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.231e-05/0.01377, allocations: 121 kB / 279.8 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.037e-05/0.01382, allocations: 22.97 kB / 279.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.01393, allocations: 114.2 kB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01393, allocations: 0 / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of Templates: time 0.005649/0.01958, allocations: 3.616 MB / 283.6 MB, free: 6.512 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 240] 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","",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.7417950187809765]