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.0008119/0.0008119, allocations: 84 kB / 21.43 MB, free: 3.133 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.003477/0.003477, allocations: 143 kB / 24.68 MB, free: 9.426 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.8368/0.8368, allocations: 173.4 MB / 201.2 MB, free: 9.434 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.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 1.553e-06/1.553e-06, allocations: 0 / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.339e-05/2.495e-05, allocations: 2.281 kB / 319.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002224/0.002249, allocations: 2.098 MB / 321.8 MB, free: 3.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007411/0.00299, allocations: 0.5692 MB / 322.3 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.89e-05/0.003089, allocations: 0 / 322.3 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.003196, allocations: 35.55 kB / 322.4 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.00342, allocations: 79.36 kB / 322.5 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002044/0.003625, allocations: 82.89 kB / 322.5 MB, free: 2.969 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000244/0.003869, allocations: 287 kB / 322.8 MB, free: 2.688 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.003991, allocations: 45.12 kB / 322.9 MB, free: 2.637 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001567/0.004148, allocations: 159.5 kB / 323 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.004278, allocations: 119.5 kB / 323.1 MB, free: 2.363 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/0.00432, allocations: 20 kB / 323.2 MB, free: 2.344 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.749e-05/0.004347, allocations: 28 kB / 323.2 MB, free: 2.316 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.964e-05/0.004417, allocations: 63.67 kB / 323.2 MB, free: 2.254 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.129e-05/0.004488, allocations: 79.64 kB / 323.3 MB, free: 2.176 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002551/0.004743, allocations: 258.9 kB / 323.6 MB, free: 1.922 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.004746, allocations: 0 / 323.6 MB, free: 1.922 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.004747, allocations: 0 / 323.6 MB, free: 1.922 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.004752, allocations: 0 / 323.6 MB, free: 1.922 MB / 282.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.0007343/0.005486, allocations: 0.5515 MB / 324.1 MB, free: 1.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.005528, allocations: 8.922 kB / 324.1 MB, free: 1.332 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.819e-05/0.005587, allocations: 36.73 kB / 324.2 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.00591, allocations: 265.9 kB / 324.4 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.005924, allocations: 8.656 kB / 324.4 MB, free: 1.008 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.548e-05/0.005959, allocations: 16.38 kB / 324.5 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000486/0.006445, allocations: 370.3 kB / 324.8 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.006455, allocations: 0 / 324.8 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.006468, allocations: 8 kB / 324.8 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.006474, allocations: 4 kB / 324.8 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.006612, allocations: 91.89 kB / 324.9 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004634/0.007075, allocations: 437.2 kB / 325.3 MB, free: 44 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/0.007525, allocations: 301.6 kB / 325.6 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.00768, allocations: 138.7 kB / 325.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.007708, allocations: 7.938 kB / 325.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.007726, allocations: 31.22 kB / 325.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.262e-06/0.007727, allocations: 4 kB / 325.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.001443/0.00917, allocations: 1.152 MB / 327 MB, free: 14.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.234e-05/0.009262, allocations: 138.5 kB / 327.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002505/0.009513, allocations: 336.5 kB / 327.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.009531, allocations: 33.7 kB / 327.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.823e-05/0.009609, allocations: 145 kB / 327.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/0.009642, allocations: 39.69 kB / 327.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.814e-05/0.00968, allocations: 37.7 kB / 327.7 MB, free: 13.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.567e-05/0.009766, allocations: 334.8 kB / 328 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.505e-05/0.009821, allocations: 35.98 kB / 328 MB, free: 13.19 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.463e-05/0.009895, allocations: 98.81 kB / 328.1 MB, free: 13.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.01002, allocations: 126.8 kB / 328.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.01002, allocations: 0 / 328.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001906/0.01021, allocations: 189.3 kB / 328.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.01023, allocations: 8 kB / 328.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.01023, allocations: 0 / 328.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.01025, allocations: 7.938 kB / 328.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.668e-05/0.01032, allocations: 39.92 kB / 328.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.01033, allocations: 0 / 328.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.211e-05/0.01039, allocations: 11.98 kB / 328.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.0104, allocations: 8.219 kB / 328.5 MB, free: 12.65 MB / 298.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.893e-05/0.0105, allocations: 149.7 kB / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/0.0108, allocations: 285.2 kB / 329 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003866/0.01118, allocations: 373.4 kB / 329.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.01119, allocations: 11.94 kB / 329.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.01119, allocations: 0 / 329.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.0112, allocations: 0 / 329.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.01138, allocations: 201.2 kB / 329.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.01139, allocations: 0 / 329.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.01167, allocations: 119.8 kB / 329.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.01168, allocations: 7.938 kB / 329.7 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.01169, allocations: 12 kB / 329.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.01169, allocations: 0 / 329.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.0117, allocations: 11.92 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006218/0.01232, allocations: 0.6914 MB / 330.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.556e-05/0.01237, allocations: 35.75 kB / 330.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.417e-05/0.0124, allocations: 15.98 kB / 330.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.01252, allocations: 12 kB / 330.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.912e-05/0.01255, allocations: 11.98 kB / 330.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.01256, allocations: 15.94 kB / 330.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001612/0.01272, allocations: 243.1 kB / 330.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01272, allocations: 0 / 330.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002125/0.01293, allocations: 52 kB / 330.7 MB, free: 10.36 MB / 298.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 8.675e-05/0.01302, allocations: 115.1 kB / 330.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002453/0.01327, allocations: 195.9 kB / 331 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.01327, allocations: 4 kB / 331.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.678e-05/0.01331, allocations: 27.92 kB / 331.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.01377, allocations: 188.2 kB / 331.3 MB, free: 9.832 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008188/0.01459, allocations: 0.711 MB / 332 MB, free: 9.082 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.01471, allocations: 197.6 kB / 332.2 MB, free: 8.867 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.891e-05/0.01478, allocations: 28.48 kB / 332.2 MB, free: 8.84 MB / 298.7 MB Notification: Performance of SimCode: time 4.4e-07/0.01478, allocations: 4 kB / 332.2 MB, free: 8.836 MB / 298.7 MB Notification: Performance of Templates: time 0.003678/0.01846, allocations: 3.721 MB / 335.9 MB, free: 5.117 MB / 298.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=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.076387752778828]