Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") [: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.001523/0.001523, allocations: 182.9 kB / 8.136 MB, free: 2.207 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.344/1.344, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.0009551/0.0009551, allocations: 104.8 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.602e-06/6.632e-06, allocations: 0 / 336.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1794, allocations: 50.4 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0812/0.2606, allocations: 76.28 MB / 463.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000201/0.2609, allocations: 76.67 kB / 463.3 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.003278/0.2642, allocations: 1.101 MB / 464.4 MB, free: 9.383 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.2642, allocations: 1.594 kB / 464.4 MB, free: 9.383 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000319/0.2645, allocations: 360.1 kB / 464.7 MB, free: 8.988 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.2646, allocations: 9.469 kB / 464.7 MB, free: 8.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.295e-05/0.2646, allocations: 15.81 kB / 464.7 MB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.2648, allocations: 194.8 kB / 464.9 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.2648, allocations: 4.656 kB / 464.9 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.2648, allocations: 4 kB / 464.9 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.898e-05/0.2649, allocations: 24.75 kB / 465 MB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002262/0.2651, allocations: 157.8 kB / 465.1 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.2652, allocations: 0 / 465.1 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.2652, allocations: 0 / 465.1 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.2652, allocations: 0 / 465.1 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003496/0.2655, allocations: 352.1 kB / 465.5 MB, free: 8.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001811/0.2657, allocations: 103.9 kB / 465.6 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.754e-05/0.2658, allocations: 46.64 kB / 465.6 MB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.2658, allocations: 4.141 kB / 465.6 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.2659, allocations: 38.56 kB / 465.7 MB, free: 7.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 3.286e-06/0.2659, allocations: 4.828 kB / 465.7 MB, free: 7.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001969/0.2661, allocations: 73.53 kB / 465.7 MB, free: 7.828 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.2661, allocations: 118.9 kB / 465.8 MB, free: 7.688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.804e-05/0.2662, allocations: 121.1 kB / 466 MB, free: 7.559 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.2662, allocations: 25.7 kB / 466 MB, free: 7.527 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.191e-05/0.2663, allocations: 80.14 kB / 466.1 MB, free: 7.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.2663, allocations: 19.83 kB / 466.1 MB, free: 7.426 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-06/0.2663, allocations: 0 / 466.1 MB, free: 7.426 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.438e-05/0.2664, allocations: 318.8 kB / 466.4 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.782e-05/0.2664, allocations: 13.97 kB / 466.4 MB, free: 7.094 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.989e-05/0.2665, allocations: 63.66 kB / 466.5 MB, free: 7.004 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.157e-05/0.2665, allocations: 16 kB / 466.5 MB, free: 6.988 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2665, allocations: 7.938 kB / 466.5 MB, free: 6.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001157/0.2667, allocations: 81.39 kB / 466.6 MB, free: 6.895 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.2667, allocations: 8 kB / 466.6 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.2667, allocations: 288 / 466.6 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.2667, allocations: 8 kB / 466.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.848e-05/0.2668, allocations: 23.98 kB / 466.6 MB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2668, allocations: 4 kB / 466.6 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.371e-05/0.2669, allocations: 7.906 kB / 466.6 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.2669, allocations: 4 kB / 466.6 MB, free: 6.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.174e-05/0.2669, allocations: 111.7 kB / 466.7 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.2671, allocations: 67.47 kB / 466.8 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.023e-05/0.2671, allocations: 16.5 kB / 466.8 MB, free: 6.637 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.2671, allocations: 4.656 kB / 466.8 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2671, allocations: 5.062 kB / 466.8 MB, free: 6.629 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.2671, allocations: 3.984 kB / 466.8 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001824/0.2673, allocations: 154.2 kB / 467 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2673, allocations: 0 / 467 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.415e-05/0.2674, allocations: 23.92 kB / 467 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2674, allocations: 3.906 kB / 467 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.2675, allocations: 0 / 467 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2675, allocations: 10.22 kB / 467 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2675, allocations: 0 / 467 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002754/0.2678, allocations: 319.7 kB / 467.3 MB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.636e-05/0.2678, allocations: 97 kB / 467.4 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.2678, allocations: 7.906 kB / 467.4 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.268, allocations: 288 / 467.4 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.798e-05/0.268, allocations: 7.984 kB / 467.4 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.268, allocations: 4 kB / 467.5 MB, free: 5.922 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.843e-05/0.2681, allocations: 106.6 kB / 467.6 MB, free: 5.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000307/0.2684, allocations: 8 kB / 467.6 MB, free: 5.812 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.0001019/0.2685, allocations: 99.25 kB / 467.7 MB, free: 5.703 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.5e-05/0.2686, allocations: 43.88 kB / 467.7 MB, free: 5.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2686, allocations: 0 / 467.7 MB, free: 5.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.524e-05/0.2686, allocations: 8 kB / 467.7 MB, free: 5.652 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.2689, allocations: 41.52 kB / 467.8 MB, free: 5.613 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002667/0.2692, allocations: 134.6 kB / 467.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.2695, allocations: 0.7231 MB / 468.6 MB, free: 4.703 MB / 346.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2695, allocations: 0 / 468.6 MB, free: 4.703 MB / 346.7 MB Notification: Performance of Templates: time 0.002269/0.2717, allocations: 0.6156 MB / 469.2 MB, free: 4.094 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches