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.00152/0.00152, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001906/0.001906, allocations: 145.1 kB / 24.54 MB, free: 40 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.9852/0.9852, allocations: 173.3 MB / 201.1 MB, free: 9.332 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 2.564e-06/2.564e-06, allocations: 0 / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.747e-05/4.003e-05, allocations: 2.312 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003595/0.003635, allocations: 2.188 MB / 270.2 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.004734, allocations: 0.5886 MB / 270.8 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.004895, allocations: 7.938 kB / 270.8 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.005015, allocations: 27.61 kB / 270.8 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002645/0.005279, allocations: 83.34 kB / 270.9 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003029/0.005582, allocations: 75.77 kB / 270.9 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.005943, allocations: 279 kB / 271.2 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.006103, allocations: 49.12 kB / 271.3 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.006361, allocations: 163.5 kB / 271.4 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.006506, allocations: 111.5 kB / 271.5 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.02e-05/0.006546, allocations: 20 kB / 271.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.743e-05/0.006614, allocations: 20 kB / 271.6 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.118e-05/0.006675, allocations: 63.69 kB / 271.6 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.041e-05/0.006745, allocations: 83.62 kB / 271.7 MB, free: 2.672 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002243/0.00697, allocations: 167.2 kB / 271.9 MB, free: 2.508 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.006974, allocations: 3.984 kB / 271.9 MB, free: 2.504 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.006976, allocations: 0 / 271.9 MB, free: 2.504 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.006982, allocations: 4 kB / 271.9 MB, free: 2.5 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.0007464/0.007729, allocations: 0.6358 MB / 272.5 MB, free: 1.828 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.007772, allocations: 12.92 kB / 272.5 MB, free: 1.816 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.509e-05/0.007847, allocations: 40.75 kB / 272.6 MB, free: 1.777 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.008219, allocations: 265.5 kB / 272.8 MB, free: 1.492 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.008234, allocations: 8.656 kB / 272.8 MB, free: 1.484 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.00827, allocations: 16.38 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004054/0.008675, allocations: 311.4 kB / 273.2 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.008683, allocations: 0 / 273.2 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.008696, allocations: 4 kB / 273.2 MB, free: 1.137 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.008704, allocations: 4 kB / 273.2 MB, free: 1.133 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.158e-05/0.008785, allocations: 55.89 kB / 273.2 MB, free: 1.078 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007012/0.009486, allocations: 0.5059 MB / 273.7 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.009913, allocations: 257.3 kB / 274 MB, free: 244 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.01003, allocations: 103.2 kB / 274.1 MB, free: 132 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.01006, allocations: 8 kB / 274.1 MB, free: 124 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.01009, allocations: 45.31 kB / 274.1 MB, free: 68 kB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 2.054e-06/0.01009, allocations: 0 / 274.1 MB, free: 68 kB / 250.7 MB Notification: Performance of matching and sorting (n=38): time 0.00146/0.01155, allocations: 0.9691 MB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.01164, allocations: 142.6 kB / 275.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.01188, allocations: 346.3 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.0119, allocations: 29.7 kB / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.427e-05/0.01199, allocations: 199.8 kB / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/0.01202, allocations: 39.67 kB / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.01207, allocations: 39.38 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.0122, allocations: 0.5118 MB / 276.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.773e-05/0.01224, allocations: 16.12 kB / 276.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.957e-05/0.01231, allocations: 97.47 kB / 276.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.01242, allocations: 117.4 kB / 276.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.01242, allocations: 0 / 276.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003361/0.01275, allocations: 157.3 kB / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.01277, allocations: 8 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.01278, allocations: 0 / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.01279, allocations: 8.125 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.299e-05/0.01287, allocations: 31.98 kB / 276.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.01288, allocations: 3.938 kB / 276.8 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.535e-05/0.01295, allocations: 15.94 kB / 276.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.01296, allocations: 12.05 kB / 276.9 MB, free: 13.14 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.0001141/0.01307, allocations: 176.7 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/0.01336, allocations: 229.2 kB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003248/0.01369, allocations: 295.8 kB / 277.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.01369, allocations: 11.92 kB / 277.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.0137, allocations: 4 kB / 277.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.0137, allocations: 0 / 277.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002238/0.01393, allocations: 196.5 kB / 277.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.01393, allocations: 3.984 kB / 277.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003104/0.01424, allocations: 123.9 kB / 277.9 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.01425, allocations: 0 / 277.9 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.01427, allocations: 15.98 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.01427, allocations: 0 / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.01427, allocations: 7.938 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005536/0.01483, allocations: 0.6199 MB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.535e-05/0.01487, allocations: 35.75 kB / 278.6 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.01491, allocations: 15.98 kB / 278.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.01502, allocations: 15.97 kB / 278.6 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.231e-05/0.01505, allocations: 11.94 kB / 278.6 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.01506, allocations: 11.98 kB / 278.6 MB, free: 11.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001672/0.01523, allocations: 247 kB / 278.8 MB, free: 11.06 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01523, allocations: 0 / 278.8 MB, free: 11.06 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000239/0.01547, allocations: 48 kB / 278.9 MB, free: 11.01 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.0001179/0.01559, allocations: 122.7 kB / 279 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002285/0.01582, allocations: 139.7 kB / 279.2 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.01582, allocations: 0 / 279.2 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3e-05/0.01585, allocations: 27.61 kB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004795/0.01633, allocations: 156.2 kB / 279.3 MB, free: 10.56 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.01735, allocations: 0.6555 MB / 280 MB, free: 9.871 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.496e-05/0.01742, allocations: 121.1 kB / 280.1 MB, free: 9.734 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.034e-05/0.01747, allocations: 30.95 kB / 280.1 MB, free: 9.703 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.774e-05/0.01754, allocations: 24.5 kB / 280.2 MB, free: 9.68 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01754, allocations: 0 / 280.2 MB, free: 9.68 MB / 266.7 MB Notification: Performance of Templates: time 0.005879/0.02342, allocations: 3.566 MB / 283.7 MB, free: 6.125 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.949991303961724]