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.0009142/0.0009142, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009039/0.0009039, allocations: 147 kB / 24.89 MB, free: 8.785 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 0.9623/0.9623, allocations: 173.4 MB / 201.5 MB, free: 8.281 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.533e-06/1.533e-06, allocations: 0 / 268.5 MB, free: 9.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.074e-05/2.227e-05, allocations: 8.094 kB / 268.5 MB, free: 9.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003443/0.003466, allocations: 2.172 MB / 270.6 MB, free: 7.637 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.004677, allocations: 0.5917 MB / 271.2 MB, free: 7.047 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.004824, allocations: 4 kB / 271.2 MB, free: 7.043 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.004952, allocations: 28.83 kB / 271.3 MB, free: 7.016 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003018/0.005254, allocations: 87.83 kB / 271.3 MB, free: 6.93 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.00555, allocations: 68.39 kB / 271.4 MB, free: 6.863 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.0059, allocations: 290.8 kB / 271.7 MB, free: 6.578 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.006035, allocations: 57.06 kB / 271.8 MB, free: 6.52 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.006285, allocations: 159.5 kB / 271.9 MB, free: 6.363 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.006448, allocations: 99.61 kB / 272 MB, free: 6.266 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.648e-05/0.006495, allocations: 20 kB / 272 MB, free: 6.246 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.237e-05/0.006527, allocations: 21.78 kB / 272 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.18e-05/0.006609, allocations: 71.61 kB / 272.1 MB, free: 6.156 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.988e-05/0.006699, allocations: 75.69 kB / 272.2 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.006935, allocations: 171.2 kB / 272.4 MB, free: 5.914 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.006938, allocations: 0 / 272.4 MB, free: 5.914 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.006938, allocations: 0.7188 kB / 272.4 MB, free: 5.914 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.606e-06/0.006942, allocations: 0 / 272.4 MB, free: 5.914 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.0008117/0.007753, allocations: 0.5119 MB / 272.9 MB, free: 5.383 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.007791, allocations: 8.031 kB / 272.9 MB, free: 5.375 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.634e-05/0.007867, allocations: 33.48 kB / 272.9 MB, free: 5.344 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003417/0.008209, allocations: 227.7 kB / 273.1 MB, free: 5.098 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.008228, allocations: 12.66 kB / 273.1 MB, free: 5.086 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.441e-05/0.008273, allocations: 16.88 kB / 273.2 MB, free: 5.07 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004308/0.008704, allocations: 301.7 kB / 273.5 MB, free: 4.758 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.008712, allocations: 0 / 273.5 MB, free: 4.758 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.008728, allocations: 4 kB / 273.5 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.008736, allocations: 4 kB / 273.5 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.838e-05/0.008814, allocations: 31.98 kB / 273.5 MB, free: 4.719 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004371/0.009251, allocations: 305 kB / 273.8 MB, free: 4.398 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.009663, allocations: 211.5 kB / 274 MB, free: 4.164 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.00977, allocations: 74.7 kB / 274.1 MB, free: 4.082 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.009794, allocations: 4 kB / 274.1 MB, free: 4.078 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.009822, allocations: 38.56 kB / 274.1 MB, free: 4.031 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.713e-06/0.009824, allocations: 0 / 274.1 MB, free: 4.031 MB / 250.7 MB Notification: Performance of matching and sorting (n=38): time 0.001729/0.01155, allocations: 0.8284 MB / 274.9 MB, free: 3.148 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.01166, allocations: 139.4 kB / 275.1 MB, free: 2.988 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.0119, allocations: 275 kB / 275.3 MB, free: 2.703 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.01192, allocations: 33.7 kB / 275.4 MB, free: 2.664 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.584e-05/0.01198, allocations: 121.7 kB / 275.5 MB, free: 2.543 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.297e-05/0.01202, allocations: 43.67 kB / 275.5 MB, free: 2.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.193e-05/0.01207, allocations: 33.62 kB / 275.6 MB, free: 2.461 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.01218, allocations: 342.8 kB / 275.9 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.686e-05/0.01221, allocations: 8 kB / 275.9 MB, free: 2.109 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.209e-05/0.01227, allocations: 66.84 kB / 276 MB, free: 2.02 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.01238, allocations: 93.53 kB / 276.1 MB, free: 1.902 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.01238, allocations: 4 kB / 276.1 MB, free: 1.898 MB / 250.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001765/0.01256, allocations: 117.4 kB / 276.2 MB, free: 1.777 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.01257, allocations: 8 kB / 276.2 MB, free: 1.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01258, allocations: 0 / 276.2 MB, free: 1.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.0126, allocations: 4 kB / 276.2 MB, free: 1.766 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.01271, allocations: 36.2 kB / 276.2 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.01271, allocations: 3.938 kB / 276.2 MB, free: 1.727 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.129e-05/0.0128, allocations: 11.94 kB / 276.3 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.01281, allocations: 4 kB / 276.3 MB, free: 1.711 MB / 250.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.0001102/0.01292, allocations: 124.7 kB / 276.4 MB, free: 1.578 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002784/0.0132, allocations: 165.2 kB / 276.5 MB, free: 1.41 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003342/0.01354, allocations: 224.4 kB / 276.8 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.01354, allocations: 4 kB / 276.8 MB, free: 1.172 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.01355, allocations: 11.94 kB / 276.8 MB, free: 1.16 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.01355, allocations: 3.984 kB / 276.8 MB, free: 1.156 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.01384, allocations: 149.7 kB / 276.9 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.01384, allocations: 3.938 kB / 276.9 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004244/0.01426, allocations: 115.9 kB / 277 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.01427, allocations: 0 / 277 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.01429, allocations: 12 kB / 277.1 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.01429, allocations: 0 / 277.1 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.0143, allocations: 7.984 kB / 277.1 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.01452, allocations: 258.1 kB / 277.3 MB, free: 0.582 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.01458, allocations: 39.73 kB / 277.4 MB, free: 0.543 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.193e-05/0.01463, allocations: 12 kB / 277.4 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.01481, allocations: 8 kB / 277.4 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.191e-05/0.01485, allocations: 12.17 kB / 277.4 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.01486, allocations: 4 kB / 277.4 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001361/0.015, allocations: 112.6 kB / 277.5 MB, free: 408 kB / 250.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.015, allocations: 0 / 277.5 MB, free: 408 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003642/0.01536, allocations: 48 kB / 277.5 MB, free: 360 kB / 250.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.0001222/0.01549, allocations: 100.4 kB / 277.6 MB, free: 252 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002071/0.01569, allocations: 116.3 kB / 277.8 MB, free: 136 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.0157, allocations: 4 kB / 277.8 MB, free: 132 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.087e-05/0.01573, allocations: 20.78 kB / 277.8 MB, free: 108 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005962/0.01633, allocations: 143.2 kB / 277.9 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.01754, allocations: 0.6621 MB / 278.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001019/0.01764, allocations: 117.1 kB / 278.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.023e-05/0.01772, allocations: 26.95 kB / 278.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.01788, allocations: 95.34 kB / 278.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01788, allocations: 0 / 278.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of Templates: time 0.006235/0.02411, allocations: 3.592 MB / 282.4 MB, free: 11.48 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.634469929151237]