Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") [: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.001045/0.001045, allocations: 186.2 kB / 8.135 MB, free: 2.219 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.168/1.168, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009044/0.0009044, allocations: 107.6 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.104e-06/7.134e-06, allocations: 4 kB / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1855, allocations: 50.4 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07732/0.2628, allocations: 76.26 MB / 463.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.2631, allocations: 75.89 kB / 463.2 MB, free: 10.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.005732/0.2688, allocations: 1.777 MB / 465 MB, free: 8.719 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.2689, allocations: 0.75 kB / 465 MB, free: 8.719 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003282/0.2692, allocations: 359.2 kB / 465.4 MB, free: 8.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.2692, allocations: 8.031 kB / 465.4 MB, free: 8.312 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.224e-05/0.2693, allocations: 9.406 kB / 465.4 MB, free: 8.305 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.2695, allocations: 201.7 kB / 465.6 MB, free: 8.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-06/0.2695, allocations: 3.906 kB / 465.6 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.2695, allocations: 4 kB / 465.6 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.129e-05/0.2696, allocations: 17.12 kB / 465.6 MB, free: 8.047 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.2698, allocations: 93.05 kB / 465.7 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.2698, allocations: 0 / 465.7 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.204e-06/0.2698, allocations: 0 / 465.7 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2698, allocations: 0 / 465.7 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000296/0.2701, allocations: 254.2 kB / 466 MB, free: 7.648 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.672e-05/0.2702, allocations: 41.09 kB / 466 MB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.483e-05/0.2702, allocations: 13.84 kB / 466 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.2702, allocations: 0 / 466 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.2703, allocations: 35.5 kB / 466 MB, free: 7.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.2703, allocations: 4 kB / 466 MB, free: 7.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001505/0.2704, allocations: 49.53 kB / 466.1 MB, free: 7.469 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.2705, allocations: 82.89 kB / 466.2 MB, free: 7.371 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.788e-05/0.2706, allocations: 121.3 kB / 466.3 MB, free: 7.242 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.2706, allocations: 25.7 kB / 466.3 MB, free: 7.211 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.868e-05/0.2707, allocations: 84.12 kB / 466.4 MB, free: 7.125 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.202e-05/0.2707, allocations: 3.906 kB / 466.4 MB, free: 7.121 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.2707, allocations: 4.062 kB / 466.4 MB, free: 7.117 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.292e-05/0.2708, allocations: 320.2 kB / 466.7 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.099e-05/0.2708, allocations: 0 / 466.7 MB, free: 6.797 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.922e-05/0.2708, allocations: 21.7 kB / 466.7 MB, free: 6.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.605e-05/0.2709, allocations: 7.938 kB / 466.7 MB, free: 6.762 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2709, allocations: 0 / 466.7 MB, free: 6.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.121e-05/0.2709, allocations: 49.64 kB / 466.8 MB, free: 6.707 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.271, allocations: 8.031 kB / 466.8 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.271, allocations: 0 / 466.8 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.626e-06/0.271, allocations: 0 / 466.8 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.622e-05/0.2711, allocations: 11.98 kB / 466.8 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.2711, allocations: 0 / 466.8 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.046e-05/0.2711, allocations: 4 kB / 466.8 MB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-06/0.2711, allocations: 0 / 466.8 MB, free: 6.684 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.748e-05/0.2712, allocations: 106.6 kB / 466.9 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.891e-05/0.2713, allocations: 45.53 kB / 467 MB, free: 6.523 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/0.2713, allocations: 16.31 kB / 467 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2713, allocations: 0 / 467 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2713, allocations: 0 / 467 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2713, allocations: 0 / 467 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001312/0.2715, allocations: 142.2 kB / 467.1 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.2715, allocations: 4 kB / 467.1 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.134e-05/0.2715, allocations: 9.297 kB / 467.1 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2715, allocations: 4.031 kB / 467.1 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.2715, allocations: 0 / 467.1 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.2715, allocations: 4 kB / 467.1 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2716, allocations: 3.906 kB / 467.1 MB, free: 6.312 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001127/0.2717, allocations: 159.9 kB / 467.3 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.768e-05/0.2717, allocations: 93 kB / 467.4 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.2718, allocations: 7.969 kB / 467.4 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.614e-05/0.2718, allocations: 4 kB / 467.4 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.426e-05/0.2719, allocations: 0.8438 kB / 467.4 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.2719, allocations: 5.375 kB / 467.4 MB, free: 6.008 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.094e-05/0.272, allocations: 106.4 kB / 467.5 MB, free: 5.906 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002144/0.2722, allocations: 4 kB / 467.5 MB, free: 5.902 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 8.381e-05/0.2723, allocations: 95.25 kB / 467.6 MB, free: 5.797 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.868e-05/0.2723, allocations: 15.98 kB / 467.6 MB, free: 5.781 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2723, allocations: 4 kB / 467.6 MB, free: 5.777 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.196e-05/0.2724, allocations: 0 / 467.6 MB, free: 5.777 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.2726, allocations: 29.77 kB / 467.7 MB, free: 5.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002595/0.2729, allocations: 88.67 kB / 467.7 MB, free: 5.633 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002728/0.2731, allocations: 0.7038 MB / 468.5 MB, free: 4.902 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2732, allocations: 4 kB / 468.5 MB, free: 4.898 MB / 346.7 MB Notification: Performance of Templates: time 0.002193/0.2754, allocations: 487.6 kB / 468.9 MB, free: 4.441 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches