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.001376/0.001376, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 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.001598/0.001598, allocations: 205.2 kB / 24.47 MB, free: 3.977 MB / 14.72 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 2.206/2.206, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|filter.x.2.|filter.x.3.|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.1.|filter.x.2.|filter.x.3.|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 0.002227/0.002227, allocations: 51.92 kB / 379 MB, free: 2.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3394, allocations: 53.37 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.005018/0.3444, allocations: 2.128 MB / 434.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.3459, allocations: 0.581 MB / 435 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.346, allocations: 7.875 kB / 435 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.3462, allocations: 27.67 kB / 435.1 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000361/0.3465, allocations: 79.36 kB / 435.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003382/0.3469, allocations: 71.84 kB / 435.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.3473, allocations: 283.1 kB / 435.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.3475, allocations: 48.19 kB / 435.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000275/0.3478, allocations: 127.4 kB / 435.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000263/0.348, allocations: 155.1 kB / 435.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.476e-05/0.3481, allocations: 24 kB / 435.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.008e-05/0.3481, allocations: 28 kB / 435.9 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.3482, allocations: 59.7 kB / 435.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.3483, allocations: 99.33 kB / 436 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004171/0.3488, allocations: 268.3 kB / 436.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3488, allocations: 0 / 436.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3488, allocations: 0 / 436.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.3488, allocations: 0 / 436.3 MB, free: 2.766 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.001427/0.3502, allocations: 0.5515 MB / 436.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3503, allocations: 8.031 kB / 436.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.042e-05/0.3503, allocations: 40.7 kB / 436.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/0.3508, allocations: 258.8 kB / 437.1 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.3509, allocations: 12.41 kB / 437.2 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.203e-05/0.3509, allocations: 16 kB / 437.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008593/0.3518, allocations: 377.8 kB / 437.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3518, allocations: 4 kB / 437.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.3518, allocations: 8 kB / 437.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.3518, allocations: 3.938 kB / 437.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.3521, allocations: 91.89 kB / 437.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000842/0.3529, allocations: 441.2 kB / 438.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009055/0.3538, allocations: 299.7 kB / 438.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002917/0.3541, allocations: 130.7 kB / 438.5 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.869e-05/0.3542, allocations: 7.938 kB / 438.5 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/0.3542, allocations: 38.56 kB / 438.5 MB, free: 368 kB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.803e-06/0.3542, allocations: 0 / 438.5 MB, free: 368 kB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.003099/0.3573, allocations: 1.152 MB / 439.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001636/0.3575, allocations: 138.8 kB / 439.8 MB, free: 15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005556/0.358, allocations: 324.6 kB / 440.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/0.3581, allocations: 37.7 kB / 440.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.3582, allocations: 141.1 kB / 440.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.93e-05/0.3583, allocations: 55.61 kB / 440.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.3584, allocations: 62.14 kB / 440.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002451/0.3587, allocations: 350.7 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.3588, allocations: 72.83 kB / 440.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004502/0.3593, allocations: 304.7 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006285/0.3599, allocations: 403.2 kB / 441.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3599, allocations: 0 / 441.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008429/0.3608, allocations: 400.8 kB / 441.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.3608, allocations: 8.938 kB / 441.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.3608, allocations: 8 kB / 441.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.05e-05/0.3608, allocations: 15.98 kB / 442 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000354/0.3612, allocations: 95.83 kB / 442.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.966e-05/0.3612, allocations: 15.94 kB / 442.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004359/0.3656, allocations: 23.95 kB / 442.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.492e-05/0.3656, allocations: 20 kB / 442.1 MB, free: 12.45 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (49): * Single equations (assignments): 49 * 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.0002666/0.3659, allocations: 166.3 kB / 442.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006692/0.3666, allocations: 289.9 kB / 442.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009102/0.3675, allocations: 368.5 kB / 442.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.3675, allocations: 12 kB / 442.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.3675, allocations: 3.984 kB / 442.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3675, allocations: 0 / 442.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004343/0.3679, allocations: 205.1 kB / 443.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3679, allocations: 4 kB / 443.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007692/0.3687, allocations: 119.8 kB / 443.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.3687, allocations: 8 kB / 443.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.804e-05/0.3688, allocations: 15.98 kB / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3688, allocations: 0 / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3688, allocations: 0 / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.3701, allocations: 0.6991 MB / 444 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.3702, allocations: 39.78 kB / 444 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.717e-05/0.3703, allocations: 19.92 kB / 444 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003856/0.3707, allocations: 8 kB / 444 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.3707, allocations: 11.92 kB / 444.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.721e-05/0.3708, allocations: 12 kB / 444.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003981/0.3712, allocations: 243.1 kB / 444.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3712, allocations: 0 / 444.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007802/0.372, allocations: 64 kB / 444.4 MB, free: 10.11 MB / 350.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 (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.0002752/0.3722, allocations: 107.2 kB / 444.5 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007624/0.373, allocations: 277.4 kB / 444.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.373, allocations: 4.062 kB / 444.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.3731, allocations: 24 kB / 444.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.3742, allocations: 192.4 kB / 445 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/0.3763, allocations: 0.725 MB / 445.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.3766, allocations: 201.6 kB / 445.9 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.3768, allocations: 27.28 kB / 445.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.3769, allocations: 35.42 kB / 445.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3769, allocations: 4 kB / 445.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of Templates: time 0.01234/0.3893, allocations: 4.214 MB / 450.2 MB, free: 4.293 MB / 350.1 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.516866088000825]