Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 201 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 226.6 MB / 244.7 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008552/0.0008552, allocations: 102.3 kB / 296.8 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003292/0.0003294, allocations: 4 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2613, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002038/0.2635, allocations: 1.841 MB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.2645, allocations: 0.5761 MB / 410.5 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.2647, allocations: 5.469 kB / 410.5 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.2648, allocations: 15.8 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000258/0.2651, allocations: 60.25 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.2653, allocations: 51.94 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002366/0.2656, allocations: 252.1 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.2657, allocations: 68.09 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.2659, allocations: 96.3 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.2661, allocations: 127.8 kB / 411.1 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.2661, allocations: 8.938 kB / 411.1 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.872e-05/0.2661, allocations: 12 kB / 411.1 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.804e-05/0.2662, allocations: 51.69 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.694e-05/0.2663, allocations: 136.2 kB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.2665, allocations: 180.5 kB / 411.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2665, allocations: 0 / 411.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2665, allocations: 0 / 411.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.2665, allocations: 0 / 411.5 MB, free: 24.23 MB / 298.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.0009074/0.2674, allocations: 0.5696 MB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.2674, allocations: 8.031 kB / 412.1 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.433e-05/0.2675, allocations: 32.56 kB / 412.1 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.2678, allocations: 320.3 kB / 412.4 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.2678, allocations: 20.41 kB / 412.4 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.805e-05/0.2679, allocations: 19.84 kB / 412.5 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000559/0.2684, allocations: 373.6 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.2685, allocations: 0 / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.2685, allocations: 4 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2685, allocations: 4 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.2687, allocations: 95.89 kB / 412.9 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000583/0.2693, allocations: 0.5287 MB / 413.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005626/0.2699, allocations: 313.3 kB / 413.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001864/0.2701, allocations: 145.5 kB / 413.9 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.798e-05/0.2701, allocations: 7.984 kB / 413.9 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/0.2701, allocations: 46.5 kB / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.472e-06/0.2701, allocations: 0 / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001982/0.2721, allocations: 1.314 MB / 415.3 MB, free: 20.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.2722, allocations: 138.7 kB / 415.4 MB, free: 19.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.2725, allocations: 324.6 kB / 415.7 MB, free: 19.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.2726, allocations: 29.7 kB / 415.8 MB, free: 19.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.337e-05/0.2726, allocations: 149.1 kB / 415.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.093e-05/0.2727, allocations: 47.53 kB / 415.9 MB, free: 19.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/0.2727, allocations: 12 kB / 416 MB, free: 19.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.859e-05/0.2728, allocations: 346.8 kB / 416.3 MB, free: 19.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.2729, allocations: 68.83 kB / 416.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.2731, allocations: 322.7 kB / 416.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.2734, allocations: 416.9 kB / 417.1 MB, free: 18.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.2735, allocations: 7.938 kB / 417.1 MB, free: 18.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004895/0.274, allocations: 409.5 kB / 417.5 MB, free: 17.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.274, allocations: 8 kB / 417.5 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.274, allocations: 8 kB / 417.5 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.274, allocations: 12.81 kB / 417.5 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.2743, allocations: 107.8 kB / 417.6 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.2743, allocations: 11.94 kB / 417.6 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.2745, allocations: 39.77 kB / 417.7 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.2745, allocations: 20 kB / 417.7 MB, free: 17.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.2747, allocations: 165.6 kB / 417.9 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003939/0.2751, allocations: 289.4 kB / 418.1 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005568/0.2756, allocations: 383.4 kB / 418.5 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2756, allocations: 4 kB / 418.5 MB, free: 16.58 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2757, allocations: 0 / 418.5 MB, free: 16.58 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.2757, allocations: 7.984 kB / 418.5 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.276, allocations: 325.2 kB / 418.8 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.276, allocations: 4.062 kB / 418.8 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005285/0.2765, allocations: 127.8 kB / 419 MB, free: 16.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.2765, allocations: 0 / 419 MB, free: 16.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.2765, allocations: 8 kB / 419 MB, free: 16.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.2766, allocations: 8 kB / 419 MB, free: 16.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.2766, allocations: 0 / 419 MB, free: 16.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008052/0.2774, allocations: 0.7184 MB / 419.7 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.537e-05/0.2775, allocations: 120.7 kB / 419.8 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.865e-05/0.2775, allocations: 12 kB / 419.8 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.2777, allocations: 12 kB / 419.8 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.977e-05/0.2778, allocations: 7.984 kB / 419.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.2778, allocations: 12 kB / 419.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001957/0.278, allocations: 239.1 kB / 420.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.278, allocations: 0 / 420.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004007/0.2784, allocations: 64 kB / 420.2 MB, free: 14.85 MB / 298.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 (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001154/0.2785, allocations: 112.9 kB / 420.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000432/0.279, allocations: 297.6 kB / 420.6 MB, free: 14.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.279, allocations: 0 / 420.6 MB, free: 14.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.14e-05/0.2791, allocations: 35.92 kB / 420.6 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007068/0.2798, allocations: 216.7 kB / 420.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.2809, allocations: 0.8867 MB / 421.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.2811, allocations: 0.8187 MB / 422.5 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.763e-05/0.2812, allocations: 27.44 kB / 422.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2812, allocations: 0 / 422.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of Templates: time 0.004799/0.286, allocations: 3.875 MB / 426.4 MB, free: 8.527 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches