Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 162.9 kB / 24.99 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.059/1.059, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.963e-06/1.963e-06, allocations: 0 / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.942e-05/3.138e-05, allocations: 6.312 kB / 273 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.00408/0.004111, allocations: 2.202 MB / 275.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008822/0.004993, allocations: 0.5925 MB / 275.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.00512, allocations: 4 kB / 275.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.005239, allocations: 27.61 kB / 275.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002543/0.005494, allocations: 79.36 kB / 276 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.005723, allocations: 83.7 kB / 276 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.005964, allocations: 283 kB / 276.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.006093, allocations: 49.12 kB / 276.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.006326, allocations: 159.5 kB / 276.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.006445, allocations: 107.6 kB / 276.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.906e-05/0.006474, allocations: 20 kB / 276.6 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.322e-05/0.006497, allocations: 24 kB / 276.7 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.45e-05/0.006562, allocations: 71.61 kB / 276.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.095e-05/0.006632, allocations: 75.69 kB / 276.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.006829, allocations: 179.2 kB / 277 MB, free: 13.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.006832, allocations: 7.938 kB / 277 MB, free: 13.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.006833, allocations: 0 / 277 MB, free: 13.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.006838, allocations: 0 / 277 MB, free: 13.89 MB / 266.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.0006885/0.007526, allocations: 0.6436 MB / 277.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.007563, allocations: 12.03 kB / 277.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.383e-05/0.007627, allocations: 44.7 kB / 277.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.007902, allocations: 265.5 kB / 277.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.007914, allocations: 12.59 kB / 278 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.007944, allocations: 16.38 kB / 278 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003919/0.008335, allocations: 316.5 kB / 278.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.008343, allocations: 0 / 278.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.008358, allocations: 4 kB / 278.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.008366, allocations: 4 kB / 278.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.23e-05/0.008448, allocations: 50.34 kB / 278.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004671/0.008916, allocations: 0.5138 MB / 278.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.009295, allocations: 257.3 kB / 279.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.009401, allocations: 95.08 kB / 279.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.009425, allocations: 15.84 kB / 279.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.009448, allocations: 45.33 kB / 279.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.202e-06/0.009449, allocations: 0 / 279.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=38): time 0.001302/0.01075, allocations: 0.9714 MB / 280.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/0.01083, allocations: 126.8 kB / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/0.01105, allocations: 354.3 kB / 280.7 MB, free: 9.887 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.01106, allocations: 33.7 kB / 280.7 MB, free: 9.848 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.01119, allocations: 195.8 kB / 280.9 MB, free: 9.652 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.278e-05/0.01122, allocations: 39.72 kB / 281 MB, free: 9.613 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.073e-05/0.01127, allocations: 43.48 kB / 281 MB, free: 9.562 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.01137, allocations: 0.5079 MB / 281.5 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.517e-05/0.01141, allocations: 19.98 kB / 281.5 MB, free: 9.023 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.13e-05/0.01147, allocations: 100.8 kB / 281.6 MB, free: 8.895 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.535e-05/0.01157, allocations: 121.4 kB / 281.7 MB, free: 8.742 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.01157, allocations: 7.938 kB / 281.8 MB, free: 8.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000158/0.01173, allocations: 149.4 kB / 281.9 MB, free: 8.582 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.01174, allocations: 12.64 kB / 281.9 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.361e-06/0.01175, allocations: 0 / 281.9 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.01176, allocations: 7.938 kB / 281.9 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.58e-05/0.01185, allocations: 31.92 kB / 282 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.01185, allocations: 4 kB / 282 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/0.01191, allocations: 16.11 kB / 282 MB, free: 8.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.01192, allocations: 15.94 kB / 282 MB, free: 8.496 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 9.207e-05/0.01202, allocations: 168.5 kB / 282.2 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002651/0.01228, allocations: 234.7 kB / 282.4 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003189/0.0126, allocations: 288.1 kB / 282.7 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.0126, allocations: 7.938 kB / 282.7 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.01261, allocations: 4 kB / 282.7 MB, free: 7.781 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.01261, allocations: 3.984 kB / 282.7 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.01281, allocations: 204.5 kB / 282.9 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01281, allocations: 0 / 282.9 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002865/0.0131, allocations: 123.8 kB / 283 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.0131, allocations: 0 / 283 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.01312, allocations: 8 kB / 283 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.01312, allocations: 4 kB / 283 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.01312, allocations: 3.938 kB / 283 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005088/0.01363, allocations: 0.6205 MB / 283.6 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.01368, allocations: 51.67 kB / 283.7 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.873e-05/0.01372, allocations: 16 kB / 283.7 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.01383, allocations: 11.98 kB / 283.7 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.01387, allocations: 8.125 kB / 283.7 MB, free: 6.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.01388, allocations: 15.98 kB / 283.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001489/0.01403, allocations: 255 kB / 284 MB, free: 6.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01403, allocations: 0 / 284 MB, free: 6.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002349/0.01427, allocations: 48 kB / 284 MB, free: 6.363 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.0001003/0.01437, allocations: 115.2 kB / 284.1 MB, free: 6.242 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002207/0.01459, allocations: 143 kB / 284.3 MB, free: 6.098 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.01459, allocations: 0 / 284.3 MB, free: 6.098 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.073e-05/0.01462, allocations: 27.61 kB / 284.3 MB, free: 6.066 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004672/0.01509, allocations: 148.3 kB / 284.5 MB, free: 5.922 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.01609, allocations: 0.6442 MB / 285.1 MB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.441e-05/0.01616, allocations: 117.1 kB / 285.2 MB, free: 5.102 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.932e-05/0.01621, allocations: 22.97 kB / 285.2 MB, free: 5.078 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.809e-05/0.01628, allocations: 32.5 kB / 285.3 MB, free: 5.043 MB / 266.7 MB Notification: Performance of SimCode: time 1.263e-06/0.01628, allocations: 4 kB / 285.3 MB, free: 5.039 MB / 266.7 MB Notification: Performance of Templates: time 0.005512/0.02179, allocations: 3.548 MB / 288.8 MB, free: 1.516 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.8800387459341437]