Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [: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.00102/0.00102, allocations: 180.4 kB / 8.133 MB, free: 2.168 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.15/1.15, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0008959/0.0008959, allocations: 96.66 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.293e-06/7.314e-06, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1835, allocations: 50.4 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07995/0.2635, allocations: 76.5 MB / 463.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.2637, allocations: 79.95 kB / 463.5 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004069/0.2678, allocations: 1.241 MB / 464.7 MB, free: 9.008 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.2678, allocations: 0 / 464.7 MB, free: 9.008 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003198/0.2682, allocations: 354.3 kB / 465.1 MB, free: 8.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2682, allocations: 12.03 kB / 465.1 MB, free: 8.605 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.654e-05/0.2683, allocations: 7.906 kB / 465.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.2684, allocations: 205.6 kB / 465.3 MB, free: 8.359 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.2685, allocations: 4 kB / 465.3 MB, free: 8.355 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.2685, allocations: 4 kB / 465.3 MB, free: 8.352 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.966e-05/0.2686, allocations: 17.66 kB / 465.3 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.2688, allocations: 117.9 kB / 465.4 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.2688, allocations: 0 / 465.4 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.2688, allocations: 3.938 kB / 465.4 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.2688, allocations: 4 kB / 465.5 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003792/0.2692, allocations: 334.4 kB / 465.8 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.2694, allocations: 148.8 kB / 465.9 MB, free: 7.629 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.743e-05/0.2694, allocations: 35.53 kB / 466 MB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.2695, allocations: 4 kB / 466 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.2695, allocations: 34.56 kB / 466 MB, free: 7.539 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.252e-06/0.2695, allocations: 4 kB / 466 MB, free: 7.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001837/0.2697, allocations: 67.48 kB / 466.1 MB, free: 7.465 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.2698, allocations: 110.7 kB / 466.2 MB, free: 7.332 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.9e-05/0.2699, allocations: 121.3 kB / 466.3 MB, free: 7.203 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.2699, allocations: 29.7 kB / 466.3 MB, free: 7.168 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.894e-05/0.2699, allocations: 88.27 kB / 466.4 MB, free: 7.074 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.2699, allocations: 3.906 kB / 466.4 MB, free: 7.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/0.2699, allocations: 8 kB / 466.4 MB, free: 7.062 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.584e-05/0.27, allocations: 322.8 kB / 466.7 MB, free: 6.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.141e-05/0.2701, allocations: 8 kB / 466.7 MB, free: 6.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.328e-05/0.2701, allocations: 37.55 kB / 466.8 MB, free: 6.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.305e-05/0.2701, allocations: 19.98 kB / 466.8 MB, free: 6.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2702, allocations: 0 / 466.8 MB, free: 6.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001093/0.2703, allocations: 65.53 kB / 466.9 MB, free: 6.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.2703, allocations: 7.938 kB / 466.9 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.2703, allocations: 0 / 466.9 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.2703, allocations: 4 kB / 466.9 MB, free: 6.578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.896e-05/0.2704, allocations: 15.92 kB / 466.9 MB, free: 6.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.2704, allocations: 6.312 kB / 466.9 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.118e-05/0.2705, allocations: 4.125 kB / 466.9 MB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.2705, allocations: 4 kB / 466.9 MB, free: 6.551 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.002e-05/0.2706, allocations: 113.5 kB / 467 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.547e-05/0.2707, allocations: 49.53 kB / 467.1 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.954e-05/0.2707, allocations: 12.12 kB / 467.1 MB, free: 6.363 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2707, allocations: 4.922 kB / 467.1 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2707, allocations: 0 / 467.1 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2707, allocations: 4 kB / 467.1 MB, free: 6.355 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002023/0.271, allocations: 158.1 kB / 467.2 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.271, allocations: 4 kB / 467.2 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.454e-05/0.271, allocations: 11.98 kB / 467.3 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.271, allocations: 0 / 467.3 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.2711, allocations: 0 / 467.3 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.2711, allocations: 4 kB / 467.3 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2711, allocations: 0 / 467.3 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001823/0.2713, allocations: 279.8 kB / 467.5 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.592e-05/0.2713, allocations: 92.98 kB / 467.6 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.2713, allocations: 0 / 467.6 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.2715, allocations: 4 kB / 467.6 MB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.792e-05/0.2715, allocations: 4 kB / 467.6 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.2715, allocations: 4 kB / 467.6 MB, free: 5.719 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.593e-05/0.2716, allocations: 111.6 kB / 467.7 MB, free: 5.613 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002713/0.2719, allocations: 8 kB / 467.8 MB, free: 5.605 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 0.0001024/0.272, allocations: 104.6 kB / 467.9 MB, free: 5.492 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.335e-05/0.2721, allocations: 27.94 kB / 467.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.2721, allocations: 0 / 467.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.81e-05/0.2721, allocations: 8 kB / 467.9 MB, free: 5.457 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/0.2724, allocations: 28.33 kB / 467.9 MB, free: 5.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002563/0.2726, allocations: 113.3 kB / 468 MB, free: 5.289 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002539/0.2729, allocations: 0.7149 MB / 468.7 MB, free: 4.551 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2729, allocations: 0 / 468.7 MB, free: 4.551 MB / 346.7 MB Notification: Performance of Templates: time 0.002366/0.2753, allocations: 0.6268 MB / 469.4 MB, free: 3.957 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches