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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009963/0.0009962, allocations: 183.7 kB / 8.138 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.166/1.166, allocations: 221.4 MB / 229.9 MB, free: 2.992 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008823/0.0008823, allocations: 93.81 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.324e-06/7.344e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1895, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07858/0.2682, allocations: 78.2 MB / 465.1 MB, free: 8.594 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000184/0.2684, allocations: 67.91 kB / 465.2 MB, free: 8.527 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01117/0.2796, allocations: 3.357 MB / 468.5 MB, free: 5.184 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.2796, allocations: 8 kB / 468.5 MB, free: 5.176 MB / 346.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.0006034/0.2802, allocations: 0.5042 MB / 469 MB, free: 4.629 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.2803, allocations: 12.03 kB / 469 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.309e-05/0.2803, allocations: 35.53 kB / 469.1 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.2807, allocations: 303.3 kB / 469.4 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.2807, allocations: 4 kB / 469.4 MB, free: 4.238 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.429e-05/0.2808, allocations: 15.98 kB / 469.4 MB, free: 4.223 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001688/0.281, allocations: 77.53 kB / 469.5 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004883/0.2815, allocations: 334.9 kB / 469.8 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.2815, allocations: 4 kB / 469.8 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.2815, allocations: 0 / 469.8 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.2815, allocations: 4 kB / 469.8 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005983/0.2821, allocations: 498 kB / 470.3 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005942/0.2827, allocations: 285.8 kB / 470.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.2829, allocations: 119.1 kB / 470.7 MB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.2829, allocations: 16.02 kB / 470.7 MB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.283, allocations: 39.09 kB / 470.7 MB, free: 2.766 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.514e-06/0.283, allocations: 0 / 470.7 MB, free: 2.766 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001806/0.2848, allocations: 1.077 MB / 471.8 MB, free: 1.598 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/0.2849, allocations: 126.6 kB / 471.9 MB, free: 1.449 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002881/0.2852, allocations: 275.6 kB / 472.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.2852, allocations: 25.7 kB / 472.2 MB, free: 1.145 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/0.2853, allocations: 104.8 kB / 472.3 MB, free: 1.039 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.411e-05/0.2853, allocations: 51.56 kB / 472.4 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-06/0.2853, allocations: 0 / 472.4 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2854, allocations: 346.8 kB / 472.7 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.256e-05/0.2855, allocations: 49.53 kB / 472.8 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.2857, allocations: 273.5 kB / 473 MB, free: 224 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.2859, allocations: 104.7 kB / 473.1 MB, free: 120 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2859, allocations: 0 / 473.1 MB, free: 120 kB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004394/0.2863, allocations: 317.4 kB / 473.5 MB, free: 15.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.2863, allocations: 8 kB / 473.5 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2863, allocations: 4 kB / 473.5 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.2864, allocations: 16.66 kB / 473.5 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.2866, allocations: 87.84 kB / 473.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.2867, allocations: 22.58 kB / 473.6 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.2869, allocations: 16.19 kB / 473.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.2869, allocations: 24 kB / 473.6 MB, free: 15.63 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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 8.384e-05/0.287, allocations: 120.7 kB / 473.8 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003793/0.2874, allocations: 253.1 kB / 474 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005501/0.2879, allocations: 325.6 kB / 474.3 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.288, allocations: 8.844 kB / 474.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.288, allocations: 4 kB / 474.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.288, allocations: 8.031 kB / 474.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002959/0.2883, allocations: 270 kB / 474.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2883, allocations: 0 / 474.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00058/0.2889, allocations: 119.8 kB / 474.7 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.2889, allocations: 9.219 kB / 474.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.2889, allocations: 0 / 474.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.2889, allocations: 4 kB / 474.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.2889, allocations: 3.938 kB / 474.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007083/0.2897, allocations: 0.6461 MB / 475.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.793e-05/0.2897, allocations: 120.6 kB / 475.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.853e-05/0.2898, allocations: 4 kB / 475.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000261/0.2901, allocations: 16.05 kB / 475.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.773e-05/0.2901, allocations: 0 / 475.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.2901, allocations: 12.88 kB / 475.5 MB, free: 13.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001986/0.2903, allocations: 227.1 kB / 475.8 MB, free: 13.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004007/0.2908, allocations: 48 kB / 475.8 MB, free: 13.36 MB / 362.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * 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.0001248/0.2909, allocations: 108.6 kB / 475.9 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003441/0.2912, allocations: 248.2 kB / 476.1 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2912, allocations: 0 / 476.1 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.971e-05/0.2913, allocations: 23.94 kB / 476.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.2918, allocations: 175 kB / 476.3 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009887/0.2928, allocations: 0.5351 MB / 476.9 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003883/0.2932, allocations: 0.8419 MB / 477.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2932, allocations: 0 / 477.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of Templates: time 0.005818/0.299, allocations: 2.722 MB / 480.4 MB, free: 8.695 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches