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.001801/0.001801, allocations: 99.86 kB / 20.96 MB, free: 3.457 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.001847/0.001847, allocations: 145.1 kB / 24.26 MB, free: 168 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 1.498/1.498, allocations: 173.3 MB / 200.8 MB, free: 9.309 MB / 186.7 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 1.834e-06/1.834e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.885e-05/3.069e-05, allocations: 6.25 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003792/0.003823, allocations: 2.157 MB / 269.5 MB, free: 4.555 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.005079, allocations: 0.5924 MB / 270.1 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.0052, allocations: 0 / 270.1 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.005345, allocations: 27.61 kB / 270.1 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000305/0.00565, allocations: 79.36 kB / 270.2 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002738/0.005924, allocations: 79.7 kB / 270.2 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004251/0.006349, allocations: 283 kB / 270.5 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.006513, allocations: 41.14 kB / 270.6 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002633/0.006777, allocations: 163.5 kB / 270.7 MB, free: 3.293 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002036/0.00698, allocations: 111.6 kB / 270.8 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.389e-05/0.007044, allocations: 20 kB / 270.8 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.683e-05/0.007091, allocations: 24 kB / 270.9 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.007192, allocations: 67.62 kB / 270.9 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.007309, allocations: 79.69 kB / 271 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.007689, allocations: 258.9 kB / 271.3 MB, free: 2.742 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.007691, allocations: 0 / 271.3 MB, free: 2.742 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.007692, allocations: 0 / 271.3 MB, free: 2.742 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.007697, allocations: 0 / 271.3 MB, free: 2.742 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.001175/0.008872, allocations: 0.6628 MB / 271.9 MB, free: 2.043 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.008904, allocations: 8.922 kB / 271.9 MB, free: 2.035 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.632e-05/0.009, allocations: 48.69 kB / 272 MB, free: 1.988 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004035/0.009404, allocations: 264.8 kB / 272.2 MB, free: 1.707 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.009426, allocations: 16.64 kB / 272.3 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.009465, allocations: 16.38 kB / 272.3 MB, free: 1.676 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007766/0.01024, allocations: 376.3 kB / 272.6 MB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.01025, allocations: 0 / 272.6 MB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.01027, allocations: 4 kB / 272.6 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.01027, allocations: 4 kB / 272.6 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.01046, allocations: 71.97 kB / 272.7 MB, free: 1.207 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007787/0.01124, allocations: 0.545 MB / 273.3 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000732/0.01197, allocations: 313.2 kB / 273.6 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.01221, allocations: 131.2 kB / 273.7 MB, free: 136 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.01224, allocations: 4 kB / 273.7 MB, free: 132 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.01228, allocations: 45.25 kB / 273.7 MB, free: 76 kB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.323e-06/0.01228, allocations: 0 / 273.7 MB, free: 76 kB / 250.7 MB Notification: Performance of matching and sorting (n=38): time 0.002326/0.01461, allocations: 1.118 MB / 274.9 MB, free: 14.9 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/0.01474, allocations: 138.6 kB / 275 MB, free: 14.74 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004674/0.01521, allocations: 406.3 kB / 275.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.01524, allocations: 33.7 kB / 275.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.01539, allocations: 195.8 kB / 275.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.712e-05/0.01544, allocations: 47.67 kB / 275.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.044e-05/0.01551, allocations: 43.38 kB / 275.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002744/0.01579, allocations: 0.5197 MB / 276.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.174e-05/0.01588, allocations: 31.98 kB / 276.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.01602, allocations: 112.6 kB / 276.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/0.01624, allocations: 146 kB / 276.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.01625, allocations: 4 kB / 276.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003161/0.01656, allocations: 177.3 kB / 276.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.01658, allocations: 8 kB / 276.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.01658, allocations: 0 / 276.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.0166, allocations: 11.92 kB / 276.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.01674, allocations: 39.86 kB / 276.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.01674, allocations: 0 / 276.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.01688, allocations: 12.22 kB / 276.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.01689, allocations: 8.062 kB / 276.8 MB, free: 12.85 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.0001819/0.01707, allocations: 184.5 kB / 276.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000495/0.01757, allocations: 269.3 kB / 277.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006789/0.01825, allocations: 343.8 kB / 277.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.01826, allocations: 11.94 kB / 277.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.01826, allocations: 3.984 kB / 277.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.01827, allocations: 0 / 277.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.01863, allocations: 228.5 kB / 277.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.01863, allocations: 0 / 277.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005742/0.01921, allocations: 123.9 kB / 277.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.01921, allocations: 4 kB / 277.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.01924, allocations: 7.984 kB / 277.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.01925, allocations: 7.938 kB / 277.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.01925, allocations: 3.938 kB / 277.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.0203, allocations: 0.7371 MB / 278.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.09e-05/0.02037, allocations: 39.75 kB / 278.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.611e-05/0.02042, allocations: 12 kB / 278.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.02067, allocations: 16.02 kB / 278.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.02072, allocations: 7.938 kB / 278.7 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.689e-05/0.02074, allocations: 15.98 kB / 278.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003101/0.02105, allocations: 291 kB / 279 MB, free: 10.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02105, allocations: 0 / 279 MB, free: 10.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003324/0.02138, allocations: 48 kB / 279.1 MB, free: 10.44 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 0.0001329/0.02152, allocations: 111.1 kB / 279.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004096/0.02193, allocations: 183.6 kB / 279.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.02193, allocations: 0 / 279.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.36e-05/0.022, allocations: 39.61 kB / 279.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008014/0.0228, allocations: 183.1 kB / 279.6 MB, free: 9.914 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.02408, allocations: 0.6961 MB / 280.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.02429, allocations: 201.6 kB / 280.5 MB, free: 8.969 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.242e-05/0.02436, allocations: 26.97 kB / 280.5 MB, free: 8.938 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.655e-05/0.02445, allocations: 24.5 kB / 280.5 MB, free: 8.914 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.02445, allocations: 0 / 280.5 MB, free: 8.914 MB / 266.7 MB Notification: Performance of Templates: time 0.0082/0.03265, allocations: 3.54 MB / 284.1 MB, free: 5.391 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","/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.507042928948067]