Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") [: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.0009324/0.0009324, allocations: 185.2 kB / 8.135 MB, free: 2.191 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.163/1.163, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0008986/0.0008986, allocations: 101.3 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.514e-06, allocations: 4 kB / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.196, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08064/0.2767, allocations: 76.75 MB / 463.7 MB, free: 10.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.2769, allocations: 75.89 kB / 463.7 MB, free: 9.984 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.005753/0.2827, allocations: 1.89 MB / 465.6 MB, free: 8.121 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.2827, allocations: 0 / 465.6 MB, free: 8.121 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004283/0.2831, allocations: 394.4 kB / 466 MB, free: 7.688 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.2832, allocations: 8.031 kB / 466 MB, free: 7.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.161e-05/0.2832, allocations: 12.69 kB / 466 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.2834, allocations: 194.9 kB / 466.2 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.709e-06/0.2834, allocations: 0 / 466.2 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/0.2835, allocations: 8 kB / 466.2 MB, free: 7.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001329/0.2836, allocations: 45.34 kB / 466.3 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.2838, allocations: 96.45 kB / 466.4 MB, free: 7.281 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.2838, allocations: 4 kB / 466.4 MB, free: 7.277 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.2838, allocations: 0 / 466.4 MB, free: 7.277 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.2838, allocations: 7.984 kB / 466.4 MB, free: 7.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006286/0.2845, allocations: 0.5029 MB / 466.9 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.398e-05/0.2845, allocations: 53.62 kB / 466.9 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.432e-05/0.2846, allocations: 24.92 kB / 467 MB, free: 6.625 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.2846, allocations: 4 kB / 467 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.2846, allocations: 34.56 kB / 467 MB, free: 6.578 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.2846, allocations: 0 / 467 MB, free: 6.578 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001828/0.2848, allocations: 67.75 kB / 467.1 MB, free: 6.508 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.2849, allocations: 51.41 kB / 467.1 MB, free: 6.445 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.463e-05/0.2849, allocations: 120.3 kB / 467.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.285, allocations: 25.7 kB / 467.2 MB, free: 6.293 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.751e-05/0.285, allocations: 111.8 kB / 467.4 MB, free: 6.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.285, allocations: 27.64 kB / 467.4 MB, free: 6.152 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-06/0.2851, allocations: 0 / 467.4 MB, free: 6.152 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.393e-05/0.2851, allocations: 318.8 kB / 467.7 MB, free: 5.832 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.66e-05/0.2852, allocations: 20 kB / 467.7 MB, free: 5.812 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.319e-05/0.2852, allocations: 52.22 kB / 467.8 MB, free: 5.746 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.672e-05/0.2853, allocations: 27.98 kB / 467.8 MB, free: 5.719 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2853, allocations: 0 / 467.8 MB, free: 5.719 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001485/0.2855, allocations: 102.5 kB / 467.9 MB, free: 5.613 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.2855, allocations: 4 kB / 467.9 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.2855, allocations: 0 / 467.9 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.2855, allocations: 4 kB / 467.9 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001819/0.2857, allocations: 36.11 kB / 467.9 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2857, allocations: 3.984 kB / 467.9 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.471e-05/0.2858, allocations: 15.84 kB / 468 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.2858, allocations: 5.188 kB / 468 MB, free: 5.547 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 6.838e-05/0.2859, allocations: 112.9 kB / 468.1 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.12e-05/0.2859, allocations: 7.906 kB / 468.1 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.513e-05/0.286, allocations: 13.2 kB / 468.1 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.286, allocations: 0 / 468.1 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.286, allocations: 4 kB / 468.1 MB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.286, allocations: 3.906 kB / 468.1 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.2862, allocations: 162.2 kB / 468.3 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.2862, allocations: 0 / 468.3 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.2864, allocations: 31.98 kB / 468.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2864, allocations: 0 / 468.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.2864, allocations: 0.9375 kB / 468.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2864, allocations: 4.828 kB / 468.3 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2864, allocations: 3.906 kB / 468.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001928/0.2866, allocations: 191.5 kB / 468.5 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.763e-05/0.2866, allocations: 85.02 kB / 468.6 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.2867, allocations: 0 / 468.6 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.2868, allocations: 16.55 kB / 468.6 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.2868, allocations: 0 / 468.6 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.2868, allocations: 12.02 kB / 468.6 MB, free: 4.836 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.559e-05/0.2869, allocations: 99.16 kB / 468.7 MB, free: 4.738 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002418/0.2871, allocations: 19.91 kB / 468.7 MB, free: 4.719 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001214/0.2873, allocations: 99.25 kB / 468.8 MB, free: 4.609 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001204/0.2874, allocations: 55.92 kB / 468.9 MB, free: 4.555 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2874, allocations: 0 / 468.9 MB, free: 4.555 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.926e-05/0.2875, allocations: 27.94 kB / 468.9 MB, free: 4.527 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.2877, allocations: 14.91 kB / 468.9 MB, free: 4.516 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000511/0.2882, allocations: 258.2 kB / 469.2 MB, free: 4.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/0.2885, allocations: 0.7192 MB / 469.9 MB, free: 3.504 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2885, allocations: 0 / 469.9 MB, free: 3.504 MB / 346.7 MB Notification: Performance of Templates: time 0.002891/0.2914, allocations: 0.942 MB / 470.8 MB, free: 2.582 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches