Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") [: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.0009766/0.0009768, allocations: 182.1 kB / 8.133 MB, free: 2.148 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.0008668/0.0008669, allocations: 98.03 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.821e-06/5.861e-06, allocations: 0 / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1855, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07643/0.262, allocations: 75.54 MB / 462.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.2622, allocations: 71.95 kB / 462.5 MB, free: 11.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.002522/0.2647, allocations: 0.7798 MB / 463.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.2648, allocations: 0.5312 kB / 463.3 MB, free: 10.43 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002761/0.2651, allocations: 343.9 kB / 463.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.2651, allocations: 8.781 kB / 463.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.15e-05/0.2651, allocations: 8.938 kB / 463.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.2653, allocations: 184 kB / 463.8 MB, free: 9.812 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.814e-06/0.2653, allocations: 0 / 463.8 MB, free: 9.812 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.2653, allocations: 5.156 kB / 463.8 MB, free: 9.809 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.478e-05/0.2654, allocations: 19.86 kB / 463.9 MB, free: 9.789 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000145/0.2656, allocations: 79.31 kB / 463.9 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2656, allocations: 0.875 kB / 463.9 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.2656, allocations: 0 / 463.9 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2656, allocations: 0.75 kB / 463.9 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002921/0.2659, allocations: 247.1 kB / 464.2 MB, free: 9.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.318e-05/0.266, allocations: 33.22 kB / 464.2 MB, free: 9.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.418e-05/0.266, allocations: 14.75 kB / 464.2 MB, free: 9.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.266, allocations: 8.047 kB / 464.2 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.266, allocations: 38.5 kB / 464.3 MB, free: 9.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.322e-06/0.2661, allocations: 0 / 464.3 MB, free: 9.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001341/0.2662, allocations: 41.61 kB / 464.3 MB, free: 9.238 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.2662, allocations: 77.11 kB / 464.4 MB, free: 9.145 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.114e-05/0.2663, allocations: 120.8 kB / 464.5 MB, free: 9.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.2664, allocations: 29.69 kB / 464.5 MB, free: 8.984 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.321e-05/0.2664, allocations: 84.11 kB / 464.6 MB, free: 8.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.305e-06/0.2664, allocations: 15.94 kB / 464.6 MB, free: 8.883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-06/0.2664, allocations: 0 / 464.6 MB, free: 8.883 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.514e-05/0.2665, allocations: 312.1 kB / 464.9 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.696e-06/0.2665, allocations: 0 / 464.9 MB, free: 8.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.574e-05/0.2665, allocations: 17.72 kB / 465 MB, free: 8.547 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.248e-05/0.2666, allocations: 4 kB / 465 MB, free: 8.543 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.2666, allocations: 64 / 465 MB, free: 8.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.798e-05/0.2666, allocations: 50.7 kB / 465 MB, free: 8.488 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.2667, allocations: 4 kB / 465 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2667, allocations: 0 / 465 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.2667, allocations: 3.938 kB / 465 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.209e-05/0.2668, allocations: 8 kB / 465 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2668, allocations: 0 / 465 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.419e-05/0.2668, allocations: 11.92 kB / 465 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.2668, allocations: 4.062 kB / 465 MB, free: 8.457 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: 2 (sample1.u,sample1.y) * 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.515e-05/0.2669, allocations: 107.8 kB / 465.1 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.569e-05/0.2669, allocations: 37.61 kB / 465.2 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.267, allocations: 7.594 kB / 465.2 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.267, allocations: 3.906 kB / 465.2 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.267, allocations: 5.297 kB / 465.2 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.267, allocations: 0 / 465.2 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.2672, allocations: 142.2 kB / 465.3 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2672, allocations: 0 / 465.3 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.287e-05/0.2672, allocations: 12.03 kB / 465.4 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.2672, allocations: 3.984 kB / 465.4 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.2672, allocations: 0 / 465.4 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.768e-06/0.2672, allocations: 3.938 kB / 465.4 MB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2672, allocations: 4 kB / 465.4 MB, free: 8.094 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001001/0.2674, allocations: 156.1 kB / 465.5 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.236e-05/0.2674, allocations: 93 kB / 465.6 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.2674, allocations: 4 kB / 465.6 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.937e-05/0.2675, allocations: 7.984 kB / 465.6 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.242e-05/0.2675, allocations: 0 / 465.6 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.2675, allocations: 0 / 465.6 MB, free: 7.797 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.416e-05/0.2676, allocations: 103.3 kB / 465.7 MB, free: 7.695 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002085/0.2678, allocations: 0 / 465.7 MB, free: 7.695 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: 2 (sample1.u,sample1.y) * 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.661e-05/0.2679, allocations: 99.28 kB / 465.8 MB, free: 7.586 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.41e-05/0.268, allocations: 11.94 kB / 465.8 MB, free: 7.574 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.268, allocations: 0 / 465.8 MB, free: 7.574 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.022e-05/0.268, allocations: 4 kB / 465.8 MB, free: 7.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.2682, allocations: 18.88 kB / 465.9 MB, free: 7.555 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001992/0.2684, allocations: 92.47 kB / 465.9 MB, free: 7.434 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/0.2687, allocations: 0.709 MB / 466.7 MB, free: 6.699 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2687, allocations: 0 / 466.7 MB, free: 6.699 MB / 346.7 MB Notification: Performance of Templates: time 0.001945/0.2706, allocations: 426.7 kB / 467.1 MB, free: 6.305 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches