Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") [: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.001066/0.001066, allocations: 182.9 kB / 8.133 MB, free: 2.223 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.143/1.143, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0009028/0.0009029, allocations: 100.5 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.053e-06/7.183e-06, allocations: 0 / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1972/0.1972, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08085/0.2781, allocations: 76.86 MB / 463.8 MB, free: 9.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000168/0.2783, allocations: 67.91 kB / 463.8 MB, free: 9.844 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007997/0.2863, allocations: 2.409 MB / 466.2 MB, free: 7.461 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.2864, allocations: 8 kB / 466.2 MB, free: 7.453 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.0006831/0.2871, allocations: 487.2 kB / 466.7 MB, free: 6.926 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.2871, allocations: 8.031 kB / 466.7 MB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.968e-05/0.2872, allocations: 23.72 kB / 466.8 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.2875, allocations: 239.2 kB / 467 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.2875, allocations: 9.031 kB / 467 MB, free: 6.613 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.2875, allocations: 8 kB / 467 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002235/0.2878, allocations: 104.5 kB / 467.1 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002372/0.288, allocations: 166.7 kB / 467.3 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.288, allocations: 0 / 467.3 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.2881, allocations: 0 / 467.3 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.2881, allocations: 11.94 kB / 467.3 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009745/0.2891, allocations: 0.7596 MB / 468 MB, free: 5.504 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.2893, allocations: 133.1 kB / 468.2 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.573e-05/0.2894, allocations: 65.83 kB / 468.2 MB, free: 5.285 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.562e-05/0.2894, allocations: 3.984 kB / 468.2 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001601/0.2896, allocations: 114.1 kB / 468.3 MB, free: 5.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.2896, allocations: 0 / 468.3 MB, free: 5.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003268/0.29, allocations: 163.7 kB / 468.5 MB, free: 4.988 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.29, allocations: 77.11 kB / 468.6 MB, free: 4.895 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.2901, allocations: 178.9 kB / 468.8 MB, free: 4.711 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.2902, allocations: 25.7 kB / 468.8 MB, free: 4.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.445e-05/0.2902, allocations: 128.1 kB / 468.9 MB, free: 4.551 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.2903, allocations: 43.45 kB / 469 MB, free: 4.508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.011e-05/0.2903, allocations: 0 / 469 MB, free: 4.508 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.476e-05/0.2904, allocations: 326.8 kB / 469.3 MB, free: 4.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.978e-05/0.2905, allocations: 51.98 kB / 469.3 MB, free: 4.129 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.2906, allocations: 113.6 kB / 469.4 MB, free: 3.996 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001398/0.2908, allocations: 67.95 kB / 469.5 MB, free: 3.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2908, allocations: 0 / 469.5 MB, free: 3.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003114/0.2911, allocations: 209.1 kB / 469.7 MB, free: 3.719 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.2911, allocations: 4 kB / 469.7 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2911, allocations: 5.25 kB / 469.7 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.2912, allocations: 0 / 469.7 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.2913, allocations: 35.98 kB / 469.7 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.2914, allocations: 8.047 kB / 469.8 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.2915, allocations: 40.56 kB / 469.8 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.2916, allocations: 4 kB / 469.8 MB, free: 3.625 MB / 346.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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.919e-05/0.2917, allocations: 124.9 kB / 469.9 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.003e-05/0.2917, allocations: 23.72 kB / 469.9 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003289/0.292, allocations: 173.9 kB / 470.1 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2921, allocations: 4 kB / 470.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2921, allocations: 0.5625 kB / 470.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2921, allocations: 0 / 470.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.2923, allocations: 234 kB / 470.3 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2923, allocations: 1.5 kB / 470.3 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/0.2924, allocations: 35.92 kB / 470.4 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.2925, allocations: 0 / 470.4 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.2925, allocations: 4.938 kB / 470.4 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2925, allocations: 0 / 470.4 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2925, allocations: 0 / 470.4 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002639/0.2928, allocations: 203.2 kB / 470.6 MB, free: 2.762 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.926e-05/0.2928, allocations: 92.91 kB / 470.7 MB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.2929, allocations: 7.906 kB / 470.7 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.293, allocations: 23.98 kB / 470.7 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.358e-05/0.2931, allocations: 17.22 kB / 470.7 MB, free: 2.605 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.2931, allocations: 8 kB / 470.7 MB, free: 2.598 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.769e-05/0.2932, allocations: 133.5 kB / 470.9 MB, free: 2.469 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002487/0.2935, allocations: 28.09 kB / 470.9 MB, free: 2.441 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001333/0.2936, allocations: 110 kB / 471 MB, free: 2.328 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002414/0.2939, allocations: 151.3 kB / 471.1 MB, free: 2.184 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2939, allocations: 0 / 471.1 MB, free: 2.184 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.294, allocations: 71.92 kB / 471.2 MB, free: 2.113 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.2943, allocations: 34.75 kB / 471.3 MB, free: 2.082 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005244/0.2948, allocations: 245.2 kB / 471.5 MB, free: 1.812 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003103/0.2951, allocations: 0.7703 MB / 472.3 MB, free: 1.016 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2951, allocations: 0 / 472.3 MB, free: 1.016 MB / 346.7 MB Notification: Performance of Templates: time 0.004616/0.2998, allocations: 2.047 MB / 474.3 MB, free: 15.02 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches