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.001039/0.001039, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001109/0.001109, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.9836/0.9836, allocations: 173.3 MB / 201.5 MB, free: 9.309 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.493e-06/1.493e-06, allocations: 0 / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.8e-05/1.95e-05, allocations: 6.312 kB / 268.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002544/0.002563, allocations: 2.184 MB / 270.2 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008385/0.003402, allocations: 0.5963 MB / 270.8 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.00352, allocations: 4 kB / 270.8 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.00363, allocations: 27.61 kB / 270.9 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.003856, allocations: 79.36 kB / 270.9 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.00407, allocations: 75.77 kB / 271 MB, free: 3.727 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.004312, allocations: 283 kB / 271.3 MB, free: 3.449 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.004437, allocations: 49.08 kB / 271.3 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.004605, allocations: 159.5 kB / 271.5 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.00473, allocations: 111.5 kB / 271.6 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.768e-05/0.004767, allocations: 24 kB / 271.6 MB, free: 3.105 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.462e-05/0.004792, allocations: 20 kB / 271.7 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.372e-05/0.004856, allocations: 63.67 kB / 271.7 MB, free: 3.023 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.37e-05/0.004929, allocations: 87.62 kB / 271.8 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.005138, allocations: 171.2 kB / 272 MB, free: 2.77 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.005141, allocations: 8 kB / 272 MB, free: 2.762 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.005142, allocations: 0 / 272 MB, free: 2.762 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.005147, allocations: 0 / 272 MB, free: 2.762 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.0007524/0.0059, allocations: 0.6397 MB / 272.6 MB, free: 2.086 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.005936, allocations: 12.91 kB / 272.6 MB, free: 2.074 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.169e-05/0.006007, allocations: 44.75 kB / 272.7 MB, free: 2.031 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002808/0.006288, allocations: 261.5 kB / 272.9 MB, free: 1.75 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.006301, allocations: 12.66 kB / 272.9 MB, free: 1.738 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.006332, allocations: 16.38 kB / 273 MB, free: 1.723 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004135/0.006746, allocations: 315.3 kB / 273.3 MB, free: 1.391 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.006753, allocations: 0 / 273.3 MB, free: 1.391 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.006767, allocations: 4 kB / 273.3 MB, free: 1.387 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.006777, allocations: 4 kB / 273.3 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.784e-05/0.006864, allocations: 49.59 kB / 273.3 MB, free: 1.336 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004802/0.007345, allocations: 0.5215 MB / 273.8 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.007743, allocations: 261.7 kB / 274.1 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.007854, allocations: 99.39 kB / 274.2 MB, free: 376 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.007874, allocations: 4 kB / 274.2 MB, free: 372 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.007899, allocations: 49.31 kB / 274.2 MB, free: 312 kB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.793e-06/0.007901, allocations: 0 / 274.2 MB, free: 312 kB / 250.7 MB Notification: Performance of matching and sorting (n=38): time 0.001341/0.009242, allocations: 0.9653 MB / 275.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.202e-05/0.009334, allocations: 138.6 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002535/0.009587, allocations: 358.3 kB / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.009607, allocations: 33.7 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.945e-05/0.009686, allocations: 191.8 kB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.009721, allocations: 39.81 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.142e-05/0.009763, allocations: 39.36 kB / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.009892, allocations: 0.5118 MB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.832e-05/0.00993, allocations: 15.98 kB / 276.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.905e-05/0.009999, allocations: 93.48 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.0101, allocations: 125.4 kB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.0101, allocations: 0 / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001742/0.01027, allocations: 149.4 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.01029, allocations: 10.97 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.0103, allocations: 4 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.01031, allocations: 11.92 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.452e-05/0.0104, allocations: 35.92 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.0104, allocations: 224 / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.335e-05/0.01047, allocations: 19.95 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.026e-06/0.01047, allocations: 4 kB / 277 MB, free: 13.38 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.0001022/0.01058, allocations: 176.5 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003353/0.01091, allocations: 225.3 kB / 277.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003537/0.01127, allocations: 295.8 kB / 277.6 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.01127, allocations: 11.94 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.01128, allocations: 0 / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.01128, allocations: 3.984 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.01151, allocations: 204.5 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.01151, allocations: 3.938 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/0.01182, allocations: 123.8 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.01182, allocations: 4 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.01185, allocations: 4 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.01185, allocations: 4 kB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.01185, allocations: 7.875 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005699/0.01242, allocations: 0.6277 MB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.788e-05/0.01248, allocations: 39.78 kB / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.055e-05/0.01253, allocations: 12 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.01275, allocations: 15.98 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.01279, allocations: 7.938 kB / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.01282, allocations: 11.98 kB / 278.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002444/0.01306, allocations: 255 kB / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01306, allocations: 0 / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004154/0.01348, allocations: 52 kB / 279 MB, free: 11.23 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.0001478/0.01363, allocations: 123.3 kB / 279.1 MB, free: 11.1 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003203/0.01395, allocations: 135.2 kB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01395, allocations: 0 / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.233e-05/0.01399, allocations: 31.8 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007278/0.01472, allocations: 153.4 kB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.01614, allocations: 0.6555 MB / 280.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001115/0.01625, allocations: 121.1 kB / 280.2 MB, free: 9.953 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.408e-05/0.01633, allocations: 22.97 kB / 280.2 MB, free: 9.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.822e-05/0.01643, allocations: 28.5 kB / 280.3 MB, free: 9.902 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01643, allocations: 4 kB / 280.3 MB, free: 9.898 MB / 266.7 MB Notification: Performance of Templates: time 0.006142/0.02257, allocations: 3.534 MB / 283.8 MB, free: 6.387 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.812774181831628]