Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.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.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep") [: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.000929/0.0009291, allocations: 184.2 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.208/1.208, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0009521/0.000952, allocations: 101.8 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.011e-06/6.041e-06, allocations: 0 / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2083, allocations: 50.4 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08081/0.2892, allocations: 75.31 MB / 462.2 MB, free: 11.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.2895, allocations: 72.55 kB / 462.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.001594/0.2911, allocations: 408 kB / 462.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.2911, allocations: 0 / 462.7 MB, free: 11.08 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.0002942/0.2914, allocations: 325 kB / 463 MB, free: 10.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2915, allocations: 8.031 kB / 463 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.143e-05/0.2915, allocations: 7.906 kB / 463 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.2917, allocations: 181.3 kB / 463.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.2917, allocations: 0.8438 kB / 463.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.2917, allocations: 4.781 kB / 463.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.723e-05/0.2918, allocations: 12 kB / 463.2 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.292, allocations: 85.47 kB / 463.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.292, allocations: 0 / 463.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-06/0.292, allocations: 0.5625 kB / 463.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.292, allocations: 1.25 kB / 463.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001073/0.2921, allocations: 138.1 kB / 463.4 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.113e-05/0.2922, allocations: 39.83 kB / 463.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.595e-05/0.2923, allocations: 23.45 kB / 463.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.2923, allocations: 4.625 kB / 463.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.2923, allocations: 31.41 kB / 463.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.2923, allocations: 4 kB / 463.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001402/0.2925, allocations: 45.61 kB / 463.6 MB, free: 10.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.2925, allocations: 55.39 kB / 463.6 MB, free: 9.973 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.937e-05/0.2926, allocations: 98.25 kB / 463.7 MB, free: 9.871 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.2926, allocations: 25.7 kB / 463.8 MB, free: 9.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.036e-05/0.2926, allocations: 80.14 kB / 463.8 MB, free: 9.758 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-06/0.2926, allocations: 0 / 463.8 MB, free: 9.758 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-06/0.2926, allocations: 0 / 463.8 MB, free: 9.758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.441e-05/0.2927, allocations: 322.8 kB / 464.2 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.906e-06/0.2928, allocations: 4 kB / 464.2 MB, free: 9.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.423e-05/0.2928, allocations: 34.19 kB / 464.2 MB, free: 9.387 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.46e-05/0.2928, allocations: 4 kB / 464.2 MB, free: 9.383 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2928, allocations: 0 / 464.2 MB, free: 9.383 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.078e-05/0.2929, allocations: 53.53 kB / 464.2 MB, free: 9.324 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.2929, allocations: 7.938 kB / 464.3 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2929, allocations: 4 kB / 464.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.739e-06/0.2929, allocations: 0 / 464.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.662e-05/0.293, allocations: 12.14 kB / 464.3 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.293, allocations: 0 / 464.3 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.227e-05/0.293, allocations: 3.938 kB / 464.3 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.293, allocations: 4 kB / 464.3 MB, free: 9.293 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 5.726e-05/0.2931, allocations: 109 kB / 464.4 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.601e-05/0.2932, allocations: 53.58 kB / 464.4 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.965e-05/0.2932, allocations: 4.656 kB / 464.4 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2932, allocations: 0 / 464.4 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.2932, allocations: 0 / 464.4 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.2932, allocations: 9.234 kB / 464.5 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.856e-05/0.2933, allocations: 134.1 kB / 464.6 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2933, allocations: 0 / 464.6 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.359e-05/0.2934, allocations: 8 kB / 464.6 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2934, allocations: 4.75 kB / 464.6 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.2934, allocations: 4 kB / 464.6 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2934, allocations: 0 / 464.6 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2934, allocations: 0 / 464.6 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.912e-05/0.2935, allocations: 73.91 kB / 464.7 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.168e-05/0.2935, allocations: 85.09 kB / 464.8 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.2935, allocations: 3.906 kB / 464.8 MB, free: 8.727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.353e-05/0.2936, allocations: 4 kB / 464.8 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.745e-06/0.2936, allocations: 4.938 kB / 464.8 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.2936, allocations: 0 / 464.8 MB, free: 8.719 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.164e-05/0.2936, allocations: 84.53 kB / 464.8 MB, free: 8.637 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001759/0.2938, allocations: 4 kB / 464.9 MB, free: 8.633 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: 0 () * 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 8.856e-05/0.2939, allocations: 95.25 kB / 464.9 MB, free: 8.531 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.164e-05/0.294, allocations: 23.92 kB / 465 MB, free: 8.508 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.294, allocations: 0 / 465 MB, free: 8.508 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.294, allocations: 256 / 465 MB, free: 8.508 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.2942, allocations: 22.86 kB / 465 MB, free: 8.488 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001548/0.2943, allocations: 67.75 kB / 465.1 MB, free: 8.398 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.2945, allocations: 0.6915 MB / 465.8 MB, free: 7.684 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2945, allocations: 0 / 465.8 MB, free: 7.684 MB / 346.7 MB Notification: Performance of Templates: time 0.001637/0.2962, allocations: 293 kB / 466 MB, free: 7.41 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedStep/TimeBasedStep.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches