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.001202/0.001202, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.00101/0.00101, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 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.9356/0.9356, allocations: 173.4 MB / 201.1 MB, free: 8.492 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.[0-9,]+.|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.[0-9,]+.|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.643e-06/1.643e-06, allocations: 0 / 268 MB, free: 6.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.406e-05/2.57e-05, allocations: 6.25 kB / 268 MB, free: 6.156 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002984/0.00301, allocations: 2.187 MB / 270.2 MB, free: 3.949 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009583/0.003968, allocations: 0.5846 MB / 270.8 MB, free: 3.363 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.004098, allocations: 0 / 270.8 MB, free: 3.363 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.00423, allocations: 31.61 kB / 270.8 MB, free: 3.332 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002749/0.004505, allocations: 87.33 kB / 270.9 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.004755, allocations: 71.78 kB / 270.9 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000284/0.005039, allocations: 286.9 kB / 271.2 MB, free: 2.895 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.005174, allocations: 49.14 kB / 271.3 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.005351, allocations: 151.5 kB / 271.4 MB, free: 2.691 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.005497, allocations: 115.5 kB / 271.5 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.809e-05/0.005535, allocations: 20 kB / 271.5 MB, free: 2.559 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.237e-05/0.005568, allocations: 24 kB / 271.6 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.505e-05/0.005633, allocations: 63.69 kB / 271.6 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.647e-05/0.005719, allocations: 83.62 kB / 271.7 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.005941, allocations: 179.2 kB / 271.9 MB, free: 2.215 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.005943, allocations: 0 / 271.9 MB, free: 2.215 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.005943, allocations: 0 / 271.9 MB, free: 2.215 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.005948, allocations: 0 / 271.9 MB, free: 2.215 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.0008132/0.006761, allocations: 0.6397 MB / 272.5 MB, free: 1.539 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.0068, allocations: 12.92 kB / 272.5 MB, free: 1.527 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.119e-05/0.006871, allocations: 44.75 kB / 272.6 MB, free: 1.484 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.007185, allocations: 269.5 kB / 272.9 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.0072, allocations: 12.66 kB / 272.9 MB, free: 1.184 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.00724, allocations: 20.31 kB / 272.9 MB, free: 1.164 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004691/0.007709, allocations: 307.4 kB / 273.2 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.007717, allocations: 4 kB / 273.2 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.007734, allocations: 4 kB / 273.2 MB, free: 0.832 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.007744, allocations: 8 kB / 273.2 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.007847, allocations: 47.89 kB / 273.2 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005174/0.008364, allocations: 0.5099 MB / 273.8 MB, free: 228 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.008829, allocations: 257.8 kB / 274 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.008962, allocations: 99.28 kB / 274.1 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.008991, allocations: 11.94 kB / 274.1 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.009015, allocations: 41.39 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.009017, allocations: 4 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=38): time 0.001548/0.01056, allocations: 0.9656 MB / 275.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.03e-05/0.01065, allocations: 146.5 kB / 275.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002806/0.01094, allocations: 354.3 kB / 275.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.01096, allocations: 37.83 kB / 275.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.452e-05/0.01104, allocations: 191.8 kB / 275.8 MB, free: 13.97 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.74e-05/0.01108, allocations: 35.69 kB / 275.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.227e-05/0.01113, allocations: 43.36 kB / 275.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.01126, allocations: 0.5079 MB / 276.4 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.932e-05/0.0113, allocations: 15.98 kB / 276.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.568e-05/0.01137, allocations: 100.5 kB / 276.5 MB, free: 13.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.01149, allocations: 121.4 kB / 276.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.01149, allocations: 0 / 276.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002047/0.01169, allocations: 161.3 kB / 276.8 MB, free: 12.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.01171, allocations: 8 kB / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.01171, allocations: 0 / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.01173, allocations: 12.16 kB / 276.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.01184, allocations: 35.92 kB / 276.9 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.01184, allocations: 4 kB / 276.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.256e-05/0.01193, allocations: 7.953 kB / 276.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.01194, allocations: 8 kB / 276.9 MB, free: 12.83 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.000152/0.01209, allocations: 180.4 kB / 277.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003357/0.01243, allocations: 217.3 kB / 277.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004031/0.01283, allocations: 299.8 kB / 277.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.01283, allocations: 15.88 kB / 277.6 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.01284, allocations: 4 kB / 277.6 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.01285, allocations: 3.984 kB / 277.6 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.01309, allocations: 196.5 kB / 277.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.0131, allocations: 0 / 277.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003699/0.01347, allocations: 123.8 kB / 277.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.01347, allocations: 0 / 277.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.01349, allocations: 12 kB / 277.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.0135, allocations: 11.92 kB / 277.9 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.0135, allocations: 7.938 kB / 277.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006036/0.0141, allocations: 0.6199 MB / 278.6 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.172e-05/0.01415, allocations: 39.75 kB / 278.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.01419, allocations: 11.98 kB / 278.6 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.01435, allocations: 12.12 kB / 278.6 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.01439, allocations: 11.92 kB / 278.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.01441, allocations: 16 kB / 278.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001855/0.01459, allocations: 259 kB / 278.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01459, allocations: 0 / 278.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003231/0.01492, allocations: 48 kB / 278.9 MB, free: 10.68 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 8.762e-05/0.015, allocations: 115.2 kB / 279.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002422/0.01525, allocations: 135.2 kB / 279.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01525, allocations: 0 / 279.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.662e-05/0.01528, allocations: 31.61 kB / 279.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.01586, allocations: 149.8 kB / 279.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.01696, allocations: 0.6551 MB / 280 MB, free: 9.543 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.57e-05/0.01705, allocations: 121.1 kB / 280.1 MB, free: 9.406 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.545e-05/0.01711, allocations: 26.97 kB / 280.2 MB, free: 9.379 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.44e-05/0.01718, allocations: 24.5 kB / 280.2 MB, free: 9.355 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01718, allocations: 0 / 280.2 MB, free: 9.355 MB / 266.7 MB Notification: Performance of Templates: time 0.006426/0.02361, allocations: 3.538 MB / 283.7 MB, free: 5.832 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 240] 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","",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.912733603734523]