Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") [: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 trunk/package.mo): time 0.001009/0.001009, allocations: 200.2 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009175/0.0009175, allocations: 96.89 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.434e-06, allocations: 0 / 343.1 MB, free: 8.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 51.47 MB / 394.6 MB, free: 5.27 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2515/0.3582, allocations: 76.06 MB / 470.7 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001593/0.3584, allocations: 77.38 kB / 470.8 MB, free: 14.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.001523/0.3599, allocations: 481 kB / 471.2 MB, free: 14.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.36, allocations: 0 / 471.2 MB, free: 14.72 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000211/0.3602, allocations: 333.3 kB / 471.5 MB, free: 14.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.3602, allocations: 12.03 kB / 471.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.64e-05/0.3602, allocations: 2.812 kB / 471.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.3604, allocations: 175.1 kB / 471.7 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.3604, allocations: 4 kB / 471.7 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.3604, allocations: 0 / 471.7 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.287e-05/0.3605, allocations: 18.31 kB / 471.8 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001417/0.3606, allocations: 99.22 kB / 471.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.3606, allocations: 0 / 471.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.3606, allocations: 0 / 471.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3607, allocations: 0 / 471.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.862e-05/0.3607, allocations: 139.9 kB / 472 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.583e-05/0.3608, allocations: 33.27 kB / 472 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.133e-05/0.3608, allocations: 19.08 kB / 472 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.3609, allocations: 7.828 kB / 472 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.413e-05/0.3609, allocations: 41.5 kB / 472.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.3609, allocations: 0 / 472.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001137/0.361, allocations: 50.53 kB / 472.1 MB, free: 13.74 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.37e-05/0.361, allocations: 55.41 kB / 472.2 MB, free: 13.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.655e-05/0.3611, allocations: 92.38 kB / 472.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.044e-06/0.3611, allocations: 29.7 kB / 472.3 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.241e-05/0.3611, allocations: 91.06 kB / 472.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.887e-06/0.3611, allocations: 0 / 472.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.384e-06/0.3611, allocations: 0 / 472.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.683e-05/0.3612, allocations: 310.8 kB / 472.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.3612, allocations: 7.375 kB / 472.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.829e-05/0.3612, allocations: 30.03 kB / 472.7 MB, free: 13.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.8e-05/0.3612, allocations: 11.94 kB / 472.8 MB, free: 13.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.3613, allocations: 0 / 472.8 MB, free: 13.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.172e-05/0.3613, allocations: 56.06 kB / 472.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.674e-06/0.3613, allocations: 8 kB / 472.8 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.3613, allocations: 0 / 472.8 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.3614, allocations: 0 / 472.8 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.629e-05/0.3614, allocations: 8 kB / 472.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.3614, allocations: 4 kB / 472.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.024e-05/0.3614, allocations: 8.031 kB / 472.8 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-06/0.3615, allocations: 3.469 kB / 472.8 MB, free: 13.01 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 3.781e-05/0.3615, allocations: 108.9 kB / 472.9 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.5e-05/0.3615, allocations: 44.7 kB / 473 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.217e-05/0.3616, allocations: 11.28 kB / 473 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.3616, allocations: 0 / 473 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3616, allocations: 5.688 kB / 473 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.3616, allocations: 0 / 473 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.918e-05/0.3617, allocations: 139.3 kB / 473.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.3617, allocations: 4 kB / 473.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.054e-05/0.3617, allocations: 8 kB / 473.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3617, allocations: 4 kB / 473.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.3617, allocations: 0 / 473.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.3617, allocations: 7.328 kB / 473.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3618, allocations: 2.422 kB / 473.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.367e-05/0.3618, allocations: 66.5 kB / 473.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.533e-05/0.3618, allocations: 89.02 kB / 473.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.3619, allocations: 0 / 473.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.736e-05/0.3619, allocations: 14.81 kB / 473.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.904e-06/0.3619, allocations: 0 / 473.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-06/0.3619, allocations: 0 / 473.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.875e-05/0.3619, allocations: 82.78 kB / 473.4 MB, free: 12.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001896/0.3621, allocations: 4 kB / 473.4 MB, free: 12.39 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 6.752e-05/0.3622, allocations: 95.25 kB / 473.5 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.181e-05/0.3623, allocations: 26.97 kB / 473.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.3623, allocations: 0 / 473.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.11e-07/0.3623, allocations: 0 / 473.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.3625, allocations: 19.72 kB / 473.6 MB, free: 12.26 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001434/0.3626, allocations: 65.8 kB / 473.6 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.3627, allocations: 0.6982 MB / 474.3 MB, free: 11.47 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3627, allocations: 256 / 474.3 MB, free: 11.47 MB / 346.7 MB Notification: Performance of Templates: time 0.001815/0.3646, allocations: 424.6 kB / 474.7 MB, free: 11.23 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches