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.0007819/0.0007819, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009527/0.001735, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006212/0.0006212, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008341/0.001455, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.8926/0.8926, allocations: 173.4 MB / 185.8 MB, free: 8.996 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1045/0.9971, allocations: 52.5 MB / 238.3 MB, free: 4.434 MB / 234.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.452e-06/1.452e-06, allocations: 0 / 239.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.645e-05/1.79e-05, allocations: 2.875 kB / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002279/0.002297, allocations: 2.229 MB / 241.8 MB, free: 0.9453 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007225/0.003019, allocations: 0.6001 MB / 242.4 MB, free: 352 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.003124, allocations: 4 kB / 242.4 MB, free: 348 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.624e-05/0.003191, allocations: 27.61 kB / 242.4 MB, free: 320 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001566/0.003347, allocations: 87.28 kB / 242.5 MB, free: 232 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000198/0.003545, allocations: 75.77 kB / 242.6 MB, free: 156 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002509/0.003796, allocations: 279 kB / 242.8 MB, free: 15.88 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.003908, allocations: 55.03 kB / 242.9 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.004165, allocations: 236.5 kB / 243.1 MB, free: 15.59 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.004304, allocations: 111.5 kB / 243.2 MB, free: 15.48 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.511e-05/0.004349, allocations: 24 kB / 243.2 MB, free: 15.45 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.668e-05/0.004376, allocations: 20 kB / 243.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.254e-05/0.004438, allocations: 39.81 kB / 243.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.365e-05/0.004502, allocations: 55.81 kB / 243.4 MB, free: 15.34 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001906/0.004693, allocations: 167.2 kB / 243.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.158e-05/0.004704, allocations: 0 / 243.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.004705, allocations: 0 / 243.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.004718, allocations: 0 / 243.5 MB, free: 15.18 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.0006564/0.005374, allocations: 0.5459 MB / 244.1 MB, free: 14.61 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.005405, allocations: 12.03 kB / 244.1 MB, free: 14.59 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.685e-05/0.005452, allocations: 28.91 kB / 244.1 MB, free: 14.57 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.005662, allocations: 226.7 kB / 244.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.005672, allocations: 12.66 kB / 244.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/0.0057, allocations: 20.38 kB / 244.4 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.005987, allocations: 281.4 kB / 244.6 MB, free: 13.99 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.005995, allocations: 0 / 244.6 MB, free: 13.99 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.006008, allocations: 11.98 kB / 244.7 MB, free: 13.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.006012, allocations: 4 kB / 244.7 MB, free: 13.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.296e-05/0.006065, allocations: 35.84 kB / 244.7 MB, free: 13.94 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003262/0.006392, allocations: 293.1 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004669/0.006859, allocations: 211.5 kB / 245.2 MB, free: 13.4 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.256e-05/0.006931, allocations: 81.12 kB / 245.3 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.006957, allocations: 4 kB / 245.3 MB, free: 13.31 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.006982, allocations: 50.5 kB / 245.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.583e-06/0.006984, allocations: 0 / 245.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of matching and sorting (n=38): time 0.001208/0.008191, allocations: 0.8212 MB / 246.1 MB, free: 12.38 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.774e-05/0.008269, allocations: 154.5 kB / 246.3 MB, free: 12.2 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.008415, allocations: 263 kB / 246.5 MB, free: 11.93 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.008433, allocations: 33.7 kB / 246.6 MB, free: 11.89 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.06e-05/0.008473, allocations: 117.7 kB / 246.7 MB, free: 11.77 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.008503, allocations: 43.66 kB / 246.7 MB, free: 11.73 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.441e-05/0.008537, allocations: 33.7 kB / 246.8 MB, free: 11.69 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.842e-05/0.008616, allocations: 346.7 kB / 247.1 MB, free: 11.34 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.657e-05/0.008632, allocations: 8 kB / 247.1 MB, free: 11.33 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.162e-05/0.008674, allocations: 66.84 kB / 247.2 MB, free: 11.24 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.051e-05/0.008745, allocations: 97.53 kB / 247.3 MB, free: 11.12 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.008746, allocations: 0 / 247.3 MB, free: 11.12 MB / 250.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001075/0.008853, allocations: 113.6 kB / 247.4 MB, free: 11 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.008866, allocations: 8.219 kB / 247.4 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.008872, allocations: 8.062 kB / 247.4 MB, free: 10.99 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.008883, allocations: 11.97 kB / 247.4 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.259e-05/0.008966, allocations: 31.98 kB / 247.4 MB, free: 10.95 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.008971, allocations: 15.81 kB / 247.5 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.249e-05/0.009024, allocations: 8 kB / 247.5 MB, free: 10.92 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.009031, allocations: 7.984 kB / 247.5 MB, free: 10.91 MB / 250.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 8.754e-05/0.009119, allocations: 124.7 kB / 247.6 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.009296, allocations: 161.4 kB / 247.8 MB, free: 10.62 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000211/0.009507, allocations: 228.1 kB / 248 MB, free: 10.39 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.009511, allocations: 4 kB / 248 MB, free: 10.39 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.009515, allocations: 7.938 kB / 248 MB, free: 10.38 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.00952, allocations: 3.984 kB / 248 MB, free: 10.38 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.009685, allocations: 137.7 kB / 248.1 MB, free: 10.22 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.009687, allocations: 0 / 248.1 MB, free: 10.22 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.01008, allocations: 163.8 kB / 248.3 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.295e-05/0.01011, allocations: 31.77 kB / 248.3 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.01011, allocations: 4 kB / 248.3 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.01013, allocations: 4 kB / 248.3 MB, free: 10.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/0.01014, allocations: 11.92 kB / 248.3 MB, free: 10.01 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.01014, allocations: 3.938 kB / 248.3 MB, free: 10.01 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001476/0.01029, allocations: 262.2 kB / 248.6 MB, free: 9.73 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.01032, allocations: 8 kB / 248.6 MB, free: 9.723 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.01042, allocations: 12 kB / 248.6 MB, free: 9.711 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.274e-05/0.01044, allocations: 7.922 kB / 248.6 MB, free: 9.703 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.01045, allocations: 16.03 kB / 248.6 MB, free: 9.688 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.684e-05/0.01053, allocations: 112.6 kB / 248.8 MB, free: 9.578 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01053, allocations: 0 / 248.8 MB, free: 9.578 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001864/0.01072, allocations: 48 kB / 248.8 MB, free: 9.531 MB / 250.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.285e-05/0.0108, allocations: 88.36 kB / 248.9 MB, free: 9.438 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.01094, allocations: 112.8 kB / 249 MB, free: 9.324 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.01094, allocations: 4.438 kB / 249 MB, free: 9.32 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.087e-05/0.01097, allocations: 24.78 kB / 249 MB, free: 9.293 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003618/0.01133, allocations: 164 kB / 249.2 MB, free: 9.133 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.01292, allocations: 0.6661 MB / 249.8 MB, free: 8.426 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.436e-05/0.01299, allocations: 125.1 kB / 250 MB, free: 8.285 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.327e-05/0.01305, allocations: 26.97 kB / 250 MB, free: 8.262 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.01316, allocations: 91.36 kB / 250.1 MB, free: 8.172 MB / 250.7 MB Notification: Performance of SimCode: time 9.22e-07/0.01316, allocations: 0 / 250.1 MB, free: 8.172 MB / 250.7 MB Notification: Performance of Templates: time 0.005811/0.01897, allocations: 3.792 MB / 253.9 MB, free: 4.43 MB / 250.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 -ignoreHideResult -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.3588396748527884]