Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") [: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.0009776/0.0009777, allocations: 183.6 kB / 8.133 MB, free: 2.09 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.169/1.169, allocations: 221.4 MB / 229.9 MB, free: 3.32 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.0008583/0.0008583, allocations: 89.12 kB / 280.8 MB, free: 1.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.365e-06/8.395e-06, allocations: 4 kB / 336.5 MB, free: 9.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2023, allocations: 50.39 MB / 386.9 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0805/0.2829, allocations: 75.86 MB / 462.8 MB, free: 10.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.2831, allocations: 83.89 kB / 462.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.002519/0.2857, allocations: 0.696 MB / 463.6 MB, free: 10.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.2857, allocations: 0.5 kB / 463.6 MB, free: 10.21 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.0002707/0.286, allocations: 339.5 kB / 463.9 MB, free: 9.836 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.286, allocations: 8.031 kB / 463.9 MB, free: 9.828 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.075e-05/0.286, allocations: 7.906 kB / 463.9 MB, free: 9.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.2862, allocations: 176.9 kB / 464.1 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.116e-06/0.2862, allocations: 0.5625 kB / 464.1 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.2863, allocations: 11.92 kB / 464.1 MB, free: 9.598 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.543e-05/0.2863, allocations: 12 kB / 464.1 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001827/0.2865, allocations: 102.2 kB / 464.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-06/0.2865, allocations: 0 / 464.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.2865, allocations: 0 / 464.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2866, allocations: 1.188 kB / 464.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001039/0.2867, allocations: 138.2 kB / 464.3 MB, free: 9.305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.356e-05/0.2868, allocations: 42.52 kB / 464.4 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.626e-05/0.2868, allocations: 16.89 kB / 464.4 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.2868, allocations: 4.141 kB / 464.4 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.866e-05/0.2869, allocations: 41.36 kB / 464.4 MB, free: 9.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.41e-07/0.2869, allocations: 0 / 464.4 MB, free: 9.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001251/0.287, allocations: 49.61 kB / 464.5 MB, free: 9.129 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.287, allocations: 55.39 kB / 464.5 MB, free: 9.062 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.315e-05/0.2871, allocations: 98.78 kB / 464.6 MB, free: 8.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.2871, allocations: 25.7 kB / 464.7 MB, free: 8.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.08e-05/0.2872, allocations: 88.14 kB / 464.7 MB, free: 8.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.729e-06/0.2872, allocations: 0 / 464.7 MB, free: 8.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.304e-06/0.2872, allocations: 0 / 464.7 MB, free: 8.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.2873, allocations: 318.8 kB / 465.1 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-06/0.2873, allocations: 7.938 kB / 465.1 MB, free: 8.512 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.204e-05/0.2873, allocations: 27.44 kB / 465.1 MB, free: 8.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.61e-05/0.2874, allocations: 8 kB / 465.1 MB, free: 8.465 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2874, allocations: 0 / 465.1 MB, free: 8.465 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.026e-05/0.2875, allocations: 53.53 kB / 465.2 MB, free: 8.406 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.2875, allocations: 7.938 kB / 465.2 MB, free: 8.398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-06/0.2875, allocations: 5.219 kB / 465.2 MB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.2875, allocations: 0 / 465.2 MB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.146e-05/0.2875, allocations: 8 kB / 465.2 MB, free: 8.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.2875, allocations: 3.984 kB / 465.2 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.183e-05/0.2876, allocations: 8.031 kB / 465.2 MB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.2876, allocations: 4.938 kB / 465.2 MB, free: 8.371 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 6.224e-05/0.2877, allocations: 108.9 kB / 465.3 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.054e-05/0.2877, allocations: 49.59 kB / 465.3 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.14e-05/0.2878, allocations: 12 kB / 465.4 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.2878, allocations: 0 / 465.4 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2878, allocations: 0 / 465.4 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.2878, allocations: 0 / 465.4 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.502e-05/0.2879, allocations: 134.2 kB / 465.5 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2879, allocations: 4.375 kB / 465.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.524e-05/0.2879, allocations: 13.06 kB / 465.5 MB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.2879, allocations: 3.906 kB / 465.5 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.288, allocations: 4.188 kB / 465.5 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.288, allocations: 3.938 kB / 465.5 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.288, allocations: 0 / 465.5 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.695e-05/0.2881, allocations: 84.94 kB / 465.6 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.634e-05/0.2881, allocations: 85.11 kB / 465.7 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.2881, allocations: 5.594 kB / 465.7 MB, free: 7.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.858e-05/0.2882, allocations: 4 kB / 465.7 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-06/0.2882, allocations: 0 / 465.7 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.2882, allocations: 7.984 kB / 465.7 MB, free: 7.773 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.616e-05/0.2883, allocations: 83.28 kB / 465.8 MB, free: 7.691 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001877/0.2884, allocations: 4 kB / 465.8 MB, free: 7.688 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.589e-05/0.2885, allocations: 95.25 kB / 465.9 MB, free: 7.586 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.341e-05/0.2886, allocations: 23.94 kB / 465.9 MB, free: 7.562 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.2886, allocations: 0 / 465.9 MB, free: 7.562 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.31e-07/0.2886, allocations: 0 / 465.9 MB, free: 7.562 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.2888, allocations: 22.91 kB / 465.9 MB, free: 7.543 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001545/0.2889, allocations: 67.75 kB / 466 MB, free: 7.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.2892, allocations: 0.6993 MB / 466.7 MB, free: 6.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.904e-06/0.2892, allocations: 256 / 466.7 MB, free: 6.73 MB / 346.7 MB Notification: Performance of Templates: time 0.001699/0.2909, allocations: 322.6 kB / 467 MB, free: 6.426 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches