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.001446/0.001446, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001786/0.001786, allocations: 171.1 kB / 25.61 MB, free: 8.895 MB / 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 1.033/1.033, allocations: 177.2 MB / 206.1 MB, free: 4.449 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.633e-06/1.633e-06, allocations: 0 / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.303e-05/2.467e-05, allocations: 5.688 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.00359/0.003615, allocations: 2.178 MB / 276.4 MB, free: 2.234 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.004861, allocations: 0.5947 MB / 277 MB, free: 1.641 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001835/0.005044, allocations: 8.562 kB / 277 MB, free: 1.633 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.005189, allocations: 23.67 kB / 277 MB, free: 1.609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003229/0.005512, allocations: 85.7 kB / 277.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003498/0.009009, allocations: 71.77 kB / 277.1 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005129/0.009522, allocations: 286.9 kB / 277.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.009717, allocations: 49.14 kB / 277.5 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00034/0.01006, allocations: 164.9 kB / 277.6 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.01024, allocations: 111.5 kB / 277.7 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.588e-05/0.01029, allocations: 20 kB / 277.8 MB, free: 0.832 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.591e-05/0.01033, allocations: 20.88 kB / 277.8 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.37e-05/0.01041, allocations: 59.69 kB / 277.8 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.935e-05/0.01051, allocations: 83.67 kB / 277.9 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.01081, allocations: 167.8 kB / 278.1 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.01081, allocations: 8 kB / 278.1 MB, free: 0.5 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.01082, allocations: 0 / 278.1 MB, free: 0.5 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.01082, allocations: 0 / 278.1 MB, free: 0.5 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.0009662/0.01179, allocations: 0.6357 MB / 278.7 MB, free: 15.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.01183, allocations: 8.031 kB / 278.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.823e-05/0.01191, allocations: 48.75 kB / 278.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.01222, allocations: 253.5 kB / 279 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.01224, allocations: 12.66 kB / 279 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.41e-05/0.01227, allocations: 12.38 kB / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000445/0.01272, allocations: 293.1 kB / 279.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.01273, allocations: 3.938 kB / 279.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.01275, allocations: 8 kB / 279.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.01276, allocations: 0 / 279.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.323e-05/0.01284, allocations: 39.95 kB / 279.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005676/0.01341, allocations: 486.7 kB / 279.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004933/0.0139, allocations: 240.1 kB / 280.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.01403, allocations: 95.08 kB / 280.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.01406, allocations: 15.84 kB / 280.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.01409, allocations: 37.39 kB / 280.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.234e-06/0.0141, allocations: 0 / 280.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=38): time 0.001562/0.01566, allocations: 0.79 MB / 281 MB, free: 13.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.01577, allocations: 150.5 kB / 281.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002679/0.01604, allocations: 330.2 kB / 281.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.01606, allocations: 33.7 kB / 281.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.01617, allocations: 191.8 kB / 281.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.334e-05/0.01623, allocations: 47.66 kB / 281.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.707e-05/0.01628, allocations: 39.48 kB / 281.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.01647, allocations: 0.5163 MB / 282.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.263e-05/0.01651, allocations: 15.98 kB / 282.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.204e-05/0.01659, allocations: 89.47 kB / 282.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.01671, allocations: 109.4 kB / 282.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.01671, allocations: 4 kB / 282.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001482/0.01686, allocations: 145.3 kB / 282.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.01687, allocations: 7.938 kB / 282.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.01688, allocations: 4 kB / 282.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.01689, allocations: 4 kB / 282.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.298e-05/0.01697, allocations: 35.86 kB / 282.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.01698, allocations: 4 kB / 282.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.547e-05/0.01704, allocations: 24.09 kB / 282.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.01705, allocations: 4 kB / 282.8 MB, free: 11.45 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.0001172/0.01717, allocations: 176.5 kB / 282.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002434/0.01741, allocations: 206.7 kB / 283.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000284/0.0177, allocations: 272.6 kB / 283.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.0177, allocations: 4 kB / 283.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.01771, allocations: 7.922 kB / 283.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.01771, allocations: 4 kB / 283.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.0179, allocations: 165.1 kB / 283.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.01791, allocations: 4 kB / 283.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002803/0.01819, allocations: 115.9 kB / 283.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.01819, allocations: 0 / 283.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.01821, allocations: 15.98 kB / 283.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.01821, allocations: 11.92 kB / 283.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.01821, allocations: 0 / 283.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002244/0.01844, allocations: 370.5 kB / 284.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.356e-05/0.01848, allocations: 43.69 kB / 284.1 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.01852, allocations: 20.02 kB / 284.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.01863, allocations: 12 kB / 284.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.698e-05/0.01865, allocations: 0 / 284.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.01867, allocations: 15.92 kB / 284.2 MB, free: 9.953 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001156/0.01878, allocations: 234.9 kB / 284.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01878, allocations: 3.938 kB / 284.4 MB, free: 9.723 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002177/0.019, allocations: 48 kB / 284.5 MB, free: 9.676 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.0001212/0.01912, allocations: 114.8 kB / 284.6 MB, free: 9.559 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.01931, allocations: 118.6 kB / 284.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.01931, allocations: 3.938 kB / 284.7 MB, free: 9.438 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.61e-05/0.01934, allocations: 23.67 kB / 284.7 MB, free: 9.41 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/0.01978, allocations: 140.4 kB / 284.9 MB, free: 9.273 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009156/0.02069, allocations: 0.6402 MB / 285.5 MB, free: 8.594 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.841e-05/0.02077, allocations: 125 kB / 285.6 MB, free: 8.449 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.838e-05/0.02082, allocations: 22.92 kB / 285.6 MB, free: 8.426 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.02094, allocations: 110.2 kB / 285.7 MB, free: 8.316 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.02094, allocations: 0 / 285.7 MB, free: 8.316 MB / 266.7 MB Notification: Performance of Templates: time 0.006578/0.02752, allocations: 3.749 MB / 289.5 MB, free: 4.59 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.8452846365980804]