Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") [: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.001004/0.001004, allocations: 181.8 kB / 8.13 MB, free: 2.078 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.167/1.167, allocations: 221.4 MB / 229.9 MB, free: 3.266 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.0009052/0.0009052, allocations: 99.52 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.127e-05/1.14e-05, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1921/0.1922, allocations: 50.39 MB / 386.9 MB, free: 38.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07942/0.2716, allocations: 76.79 MB / 463.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.2719, allocations: 75.95 kB / 463.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.00435/0.2763, allocations: 1.364 MB / 465.1 MB, free: 8.676 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.2763, allocations: 10.62 kB / 465.2 MB, free: 8.668 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.0003724/0.2767, allocations: 359.9 kB / 465.5 MB, free: 8.273 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.2767, allocations: 12.03 kB / 465.5 MB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.758e-05/0.2768, allocations: 12.66 kB / 465.5 MB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.2769, allocations: 201.7 kB / 465.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.277, allocations: 4 kB / 465.7 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.277, allocations: 5.125 kB / 465.7 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.842e-05/0.2771, allocations: 24 kB / 465.8 MB, free: 7.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002096/0.2773, allocations: 128.9 kB / 465.9 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.2773, allocations: 0 / 465.9 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.2773, allocations: 0 / 465.9 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.2774, allocations: 8 kB / 465.9 MB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004107/0.2778, allocations: 278.1 kB / 466.2 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.278, allocations: 142.3 kB / 466.3 MB, free: 7.344 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.107e-05/0.278, allocations: 29.89 kB / 466.3 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.2781, allocations: 7.938 kB / 466.3 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.822e-05/0.2782, allocations: 56.22 kB / 466.4 MB, free: 7.234 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.953e-06/0.2782, allocations: 0 / 466.4 MB, free: 7.234 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001742/0.2783, allocations: 81.48 kB / 466.5 MB, free: 7.148 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.2784, allocations: 85.05 kB / 466.6 MB, free: 7.047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.697e-05/0.2785, allocations: 125 kB / 466.7 MB, free: 6.918 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.2785, allocations: 30.36 kB / 466.7 MB, free: 6.883 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.665e-05/0.2786, allocations: 80.14 kB / 466.8 MB, free: 6.801 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.2786, allocations: 19.8 kB / 466.8 MB, free: 6.781 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.2786, allocations: 0 / 466.8 MB, free: 6.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.213e-05/0.2787, allocations: 322.8 kB / 467.1 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.946e-05/0.2787, allocations: 16 kB / 467.1 MB, free: 6.441 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-05/0.2788, allocations: 49.16 kB / 467.2 MB, free: 6.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.986e-05/0.2788, allocations: 22.36 kB / 467.2 MB, free: 6.355 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2789, allocations: 0 / 467.2 MB, free: 6.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001397/0.279, allocations: 97.47 kB / 467.3 MB, free: 6.254 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.279, allocations: 4 kB / 467.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.279, allocations: 0 / 467.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.279, allocations: 4 kB / 467.3 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.963e-05/0.2791, allocations: 23.83 kB / 467.3 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.2792, allocations: 3.938 kB / 467.3 MB, free: 6.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.869e-05/0.2792, allocations: 8.156 kB / 467.3 MB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.567e-06/0.2792, allocations: 4 kB / 467.3 MB, free: 6.207 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 7.207e-05/0.2793, allocations: 113 kB / 467.5 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.2794, allocations: 50.02 kB / 467.5 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.2794, allocations: 17.39 kB / 467.5 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.2794, allocations: 4 kB / 467.5 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2794, allocations: 0 / 467.5 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2794, allocations: 0 / 467.5 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.2797, allocations: 308.8 kB / 467.8 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2797, allocations: 0 / 467.8 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.481e-05/0.2798, allocations: 8 kB / 467.8 MB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.2798, allocations: 7.922 kB / 467.8 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.2798, allocations: 4 kB / 467.9 MB, free: 5.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2798, allocations: 4 kB / 467.9 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2798, allocations: 0 / 467.9 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000146/0.28, allocations: 194.8 kB / 468 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.202e-05/0.28, allocations: 100.9 kB / 468.1 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.2801, allocations: 0.875 kB / 468.1 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.003e-05/0.2801, allocations: 4 kB / 468.1 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.242e-05/0.2802, allocations: 11.89 kB / 468.2 MB, free: 5.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.2802, allocations: 96 / 468.2 MB, free: 5.293 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.634e-05/0.2803, allocations: 114.3 kB / 468.3 MB, free: 5.184 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002298/0.2805, allocations: 16 kB / 468.3 MB, free: 5.168 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: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001136/0.2806, allocations: 99.25 kB / 468.4 MB, free: 5.062 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001128/0.2807, allocations: 51.92 kB / 468.4 MB, free: 5.012 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2807, allocations: 0 / 468.4 MB, free: 5.012 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.338e-05/0.2808, allocations: 15.94 kB / 468.5 MB, free: 4.996 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.281, allocations: 16.47 kB / 468.5 MB, free: 4.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002793/0.2813, allocations: 136.2 kB / 468.6 MB, free: 4.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003049/0.2816, allocations: 0.7192 MB / 469.3 MB, free: 4.074 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2816, allocations: 0 / 469.3 MB, free: 4.074 MB / 346.7 MB Notification: Performance of Templates: time 0.002561/0.2842, allocations: 0.7852 MB / 470.1 MB, free: 3.312 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches