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.001517/0.001517, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001648/0.001648, allocations: 184.3 kB / 23.71 MB, free: 4.695 MB / 14.72 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.39/1.39, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|filter.x.2.|filter.x.3.|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.1.|filter.x.2.|filter.x.3.|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 0.001637/0.001637, allocations: 48.06 kB / 370.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2486, allocations: 52.17 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004201/0.2528, allocations: 2.26 MB / 425.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.2543, allocations: 0.5965 MB / 426 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.2545, allocations: 0 / 426 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.2547, allocations: 31.61 kB / 426 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003604/0.255, allocations: 75.42 kB / 426.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003261/0.2554, allocations: 75.83 kB / 426.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004158/0.2558, allocations: 275 kB / 426.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.256, allocations: 53.12 kB / 426.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.2562, allocations: 119.4 kB / 426.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.2564, allocations: 147.2 kB / 426.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.311e-05/0.2565, allocations: 20 kB / 426.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.531e-05/0.2565, allocations: 28 kB / 426.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-05/0.2566, allocations: 63.64 kB / 426.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.2568, allocations: 131.1 kB / 427 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003802/0.2571, allocations: 263.9 kB / 427.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2571, allocations: 0 / 427.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2571, allocations: 0 / 427.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.2572, allocations: 0 / 427.2 MB, free: 10.54 MB / 334.1 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.001325/0.2585, allocations: 0.5515 MB / 427.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.2585, allocations: 12.03 kB / 427.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.782e-05/0.2586, allocations: 36.75 kB / 427.8 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.259, allocations: 258.7 kB / 428.1 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.2591, allocations: 16.41 kB / 428.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.2591, allocations: 16 kB / 428.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007154/0.2598, allocations: 375 kB / 428.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.2598, allocations: 0 / 428.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.2598, allocations: 8 kB / 428.5 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.2599, allocations: 4 kB / 428.5 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000222/0.2601, allocations: 87.89 kB / 428.6 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007895/0.2609, allocations: 0.5005 MB / 429.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007466/0.2616, allocations: 311.3 kB / 429.4 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.2618, allocations: 132.4 kB / 429.5 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.2619, allocations: 11.84 kB / 429.5 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.2619, allocations: 42.5 kB / 429.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.493e-06/0.2619, allocations: 0 / 429.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002453/0.2644, allocations: 1.192 MB / 430.7 MB, free: 6.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.2645, allocations: 130.8 kB / 430.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004348/0.2649, allocations: 328.6 kB / 431.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.265, allocations: 33.64 kB / 431.2 MB, free: 6.285 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.2651, allocations: 149.1 kB / 431.4 MB, free: 6.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.94e-05/0.2652, allocations: 59.64 kB / 431.4 MB, free: 6.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.2653, allocations: 70.12 kB / 431.5 MB, free: 6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.2654, allocations: 350.8 kB / 431.8 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.2656, allocations: 64.84 kB / 431.9 MB, free: 5.586 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.2659, allocations: 322.7 kB / 432.2 MB, free: 5.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000494/0.2664, allocations: 416.9 kB / 432.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.2664, allocations: 3.938 kB / 432.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007507/0.2672, allocations: 409.5 kB / 433 MB, free: 4.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.2672, allocations: 8.188 kB / 433 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.2672, allocations: 16 kB / 433.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.2672, allocations: 8 kB / 433.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.2675, allocations: 99.83 kB / 433.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.971e-05/0.2675, allocations: 15.94 kB / 433.2 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002391/0.2678, allocations: 16 kB / 433.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.2678, allocations: 27.98 kB / 433.2 MB, free: 4.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (51): * Single equations (assignments): 51 * 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.0001893/0.268, allocations: 173.5 kB / 433.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006167/0.2686, allocations: 294.4 kB / 433.7 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007221/0.2693, allocations: 387.4 kB / 434.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.2693, allocations: 4.062 kB / 434.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.2693, allocations: 8 kB / 434.1 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.2693, allocations: 0 / 434.1 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004462/0.2698, allocations: 296.4 kB / 434.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.2698, allocations: 0 / 434.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005959/0.2704, allocations: 127.8 kB / 434.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.974e-06/0.2704, allocations: 4 kB / 434.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.2704, allocations: 12 kB / 434.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.2704, allocations: 4 kB / 434.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2704, allocations: 0 / 434.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.2716, allocations: 0.7108 MB / 435.2 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.855e-05/0.2717, allocations: 47.83 kB / 435.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.674e-05/0.2718, allocations: 12 kB / 435.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.2721, allocations: 12 kB / 435.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.262e-05/0.2721, allocations: 3.984 kB / 435.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.898e-05/0.2721, allocations: 12 kB / 435.3 MB, free: 1.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003252/0.2725, allocations: 243.1 kB / 435.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2725, allocations: 0 / 435.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004959/0.273, allocations: 67.94 kB / 435.6 MB, free: 1.551 MB / 334.1 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 (45): * Single equations (assignments): 45 * 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.0001802/0.2731, allocations: 122.1 kB / 435.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006437/0.2738, allocations: 289.8 kB / 436 MB, free: 1.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.2738, allocations: 4.062 kB / 436 MB, free: 1.141 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.753e-05/0.2739, allocations: 35.86 kB / 436 MB, free: 1.105 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009272/0.2748, allocations: 200.4 kB / 436.2 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.2765, allocations: 0.7427 MB / 437 MB, free: 140 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005494/0.277, allocations: 0.8074 MB / 437.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.2771, allocations: 31.28 kB / 437.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.2772, allocations: 35.42 kB / 437.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2772, allocations: 0 / 437.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of Templates: time 0.009958/0.2872, allocations: 3.948 MB / 441.8 MB, free: 11.29 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5769765060395]