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.0009693/0.0009693, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009472/0.0009472, allocations: 165.4 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.9181/0.9181, allocations: 177.1 MB / 205 MB, free: 5.289 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.493e-06/1.493e-06, allocations: 0 / 273 MB, free: 1.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.433e-05/2.582e-05, allocations: 5.969 kB / 273 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.006066/0.006092, allocations: 2.214 MB / 275.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.007152, allocations: 0.6003 MB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.007274, allocations: 4 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003156/0.01043, allocations: 27.61 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002969/0.01073, allocations: 79.36 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.01101, allocations: 71.77 kB / 276 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003076/0.01131, allocations: 286.9 kB / 276.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.01145, allocations: 45.14 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002891/0.01174, allocations: 167.5 kB / 276.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.01189, allocations: 107.6 kB / 276.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.812e-05/0.01193, allocations: 20 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.211e-05/0.01196, allocations: 20 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.998e-05/0.01203, allocations: 63.62 kB / 276.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.874e-05/0.01211, allocations: 79.7 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.01234, allocations: 175.1 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.01235, allocations: 3.938 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.01235, allocations: 0 / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.01235, allocations: 4 kB / 276.9 MB, free: 13.43 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.0008341/0.01319, allocations: 0.6319 MB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.003052/0.01624, allocations: 12.03 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.815e-05/0.01632, allocations: 48.7 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.01661, allocations: 253.5 kB / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.01662, allocations: 8.656 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.01665, allocations: 20.38 kB / 277.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004542/0.01711, allocations: 316.5 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.01712, allocations: 0 / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.01713, allocations: 4 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.01714, allocations: 7.984 kB / 278.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.01725, allocations: 54.34 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004983/0.01775, allocations: 0.5021 MB / 278.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000461/0.01821, allocations: 265.3 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.01834, allocations: 91.09 kB / 279.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.01837, allocations: 19.84 kB / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.01839, allocations: 41.33 kB / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.01839, allocations: 0 / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=38): time 0.004556/0.02295, allocations: 0.9754 MB / 280.1 MB, free: 9.957 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.383e-05/0.02303, allocations: 134.8 kB / 280.3 MB, free: 9.801 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.0233, allocations: 346.3 kB / 280.6 MB, free: 9.445 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.02332, allocations: 29.7 kB / 280.6 MB, free: 9.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.111e-05/0.02341, allocations: 199.8 kB / 280.8 MB, free: 9.211 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.02345, allocations: 31.73 kB / 280.9 MB, free: 9.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.088e-05/0.0235, allocations: 35.38 kB / 280.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.02363, allocations: 0.5118 MB / 281.4 MB, free: 8.613 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.985e-05/0.02366, allocations: 24.11 kB / 281.4 MB, free: 8.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.621e-05/0.02374, allocations: 97.42 kB / 281.5 MB, free: 8.461 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.02386, allocations: 113.4 kB / 281.6 MB, free: 8.316 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.02386, allocations: 3.938 kB / 281.6 MB, free: 8.312 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001961/0.02405, allocations: 153.4 kB / 281.8 MB, free: 8.156 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.02407, allocations: 8 kB / 281.8 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.02408, allocations: 0 / 281.8 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.02409, allocations: 7.938 kB / 281.8 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.02419, allocations: 35.92 kB / 281.8 MB, free: 8.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.0242, allocations: 4.641 kB / 281.8 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.82e-05/0.02428, allocations: 15.89 kB / 281.9 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.02429, allocations: 8 kB / 281.9 MB, free: 8.078 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.872e-05/0.02439, allocations: 172.7 kB / 282 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003422/0.02473, allocations: 238.7 kB / 282.3 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003424/0.02816, allocations: 284.1 kB / 282.6 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.02816, allocations: 11.88 kB / 282.6 MB, free: 7.359 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.02817, allocations: 4 kB / 282.6 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.02817, allocations: 0 / 282.6 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.02844, allocations: 208.5 kB / 282.8 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.02844, allocations: 0 / 282.8 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003807/0.02882, allocations: 123.9 kB / 282.9 MB, free: 6.996 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.02883, allocations: 3.984 kB / 282.9 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.02885, allocations: 12.12 kB / 282.9 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.02885, allocations: 4 kB / 282.9 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.02885, allocations: 3.938 kB / 282.9 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006164/0.02947, allocations: 0.6165 MB / 283.5 MB, free: 6.328 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.435e-05/0.02953, allocations: 47.64 kB / 283.6 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.519e-05/0.02957, allocations: 15.98 kB / 283.6 MB, free: 6.266 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.02973, allocations: 12.03 kB / 283.6 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.481e-05/0.02976, allocations: 11.92 kB / 283.6 MB, free: 6.242 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.02978, allocations: 12 kB / 283.6 MB, free: 6.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001737/0.02996, allocations: 251 kB / 283.9 MB, free: 5.988 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02996, allocations: 0 / 283.9 MB, free: 5.988 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003331/0.03029, allocations: 48 kB / 283.9 MB, free: 5.941 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.0001041/0.03039, allocations: 107.2 kB / 284 MB, free: 5.828 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002497/0.03064, allocations: 143.3 kB / 284.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.03065, allocations: 0 / 284.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.736e-05/0.03068, allocations: 27.61 kB / 284.2 MB, free: 5.652 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/0.03436, allocations: 148.3 kB / 284.3 MB, free: 5.508 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.03547, allocations: 0.6478 MB / 285 MB, free: 4.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.657e-05/0.03556, allocations: 117.1 kB / 285.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.98e-05/0.03562, allocations: 26.95 kB / 285.1 MB, free: 4.656 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.957e-05/0.0357, allocations: 32.5 kB / 285.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of SimCode: time 9.11e-07/0.0357, allocations: 0 / 285.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of Templates: time 0.006548/0.04225, allocations: 3.577 MB / 288.7 MB, free: 1.07 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.7479270012117922]