Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.00169/0.00169, allocations: 200.1 kB / 8.541 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000877/0.0008767, allocations: 95.59 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.008e-05/1.024e-05, allocations: 4 kB / 343.2 MB, free: 8.727 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08938/0.08941, allocations: 51.47 MB / 394.6 MB, free: 5.203 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2446/0.3341, allocations: 77.32 MB / 471.9 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.3344, allocations: 81.05 kB / 472 MB, free: 14.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004388/0.3388, allocations: 1.343 MB / 473.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.3388, allocations: 0 / 473.4 MB, free: 13.45 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.0003018/0.3391, allocations: 362.2 kB / 473.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3392, allocations: 12.03 kB / 473.7 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.3393, allocations: 23.05 kB / 473.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.3395, allocations: 192.9 kB / 473.9 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.3395, allocations: 4 kB / 473.9 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.3395, allocations: 0 / 473.9 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.002e-05/0.3396, allocations: 19.38 kB / 474 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001857/0.3398, allocations: 118.3 kB / 474.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.3398, allocations: 4 kB / 474.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.3399, allocations: 0.6562 kB / 474.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3399, allocations: 6.719 kB / 474.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000359/0.3402, allocations: 338 kB / 474.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.3404, allocations: 150.7 kB / 474.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.221e-05/0.3404, allocations: 25.89 kB / 474.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.3405, allocations: 3.375 kB / 474.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.3405, allocations: 46.12 kB / 474.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.3405, allocations: 1.312 kB / 474.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001846/0.3407, allocations: 60.83 kB / 474.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.3407, allocations: 110.5 kB / 474.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.901e-05/0.3408, allocations: 125.7 kB / 474.9 MB, free: 11.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.3409, allocations: 25.7 kB / 474.9 MB, free: 11.74 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.915e-05/0.3409, allocations: 88.27 kB / 475 MB, free: 11.65 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.3409, allocations: 14.19 kB / 475 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.3409, allocations: 0 / 475 MB, free: 11.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.782e-05/0.341, allocations: 316.8 kB / 475.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.98e-05/0.341, allocations: 7.812 kB / 475.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.65e-05/0.341, allocations: 39.59 kB / 475.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.936e-05/0.3411, allocations: 18.41 kB / 475.4 MB, free: 11.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3411, allocations: 0 / 475.4 MB, free: 11.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.574e-05/0.3412, allocations: 78.75 kB / 475.5 MB, free: 11.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.3412, allocations: 6.719 kB / 475.5 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3412, allocations: 0 / 475.5 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3412, allocations: 4 kB / 475.5 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.459e-05/0.3413, allocations: 15.5 kB / 475.5 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.3413, allocations: 4 kB / 475.5 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.17e-05/0.3414, allocations: 4 kB / 475.5 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.086e-06/0.3414, allocations: 7.156 kB / 475.5 MB, free: 11.16 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 5.655e-05/0.3414, allocations: 112.9 kB / 475.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.513e-05/0.3415, allocations: 48.75 kB / 475.7 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.277e-05/0.3416, allocations: 14.14 kB / 475.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3416, allocations: 0 / 475.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.3416, allocations: 4 kB / 475.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3416, allocations: 4 kB / 475.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/0.3418, allocations: 151 kB / 475.9 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3418, allocations: 4 kB / 475.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.776e-05/0.3419, allocations: 8 kB / 475.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3419, allocations: 0 / 475.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.3419, allocations: 3.328 kB / 475.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3419, allocations: 4 kB / 475.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3419, allocations: 0 / 475.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001502/0.3421, allocations: 273.1 kB / 476.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-05/0.3421, allocations: 95.88 kB / 476.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.3421, allocations: 0 / 476.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.3423, allocations: 4 kB / 476.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.3423, allocations: 11.23 kB / 476.3 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.3423, allocations: 1.781 kB / 476.3 MB, free: 10.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.353e-05/0.3424, allocations: 107.5 kB / 476.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002647/0.3426, allocations: 11.91 kB / 476.4 MB, free: 10.3 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.0001131/0.3427, allocations: 103.9 kB / 476.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.315e-05/0.3428, allocations: 30.06 kB / 476.5 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3429, allocations: 4 kB / 476.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.769e-05/0.3429, allocations: 12.19 kB / 476.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.3432, allocations: 22.31 kB / 476.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000262/0.3434, allocations: 113 kB / 476.7 MB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.3436, allocations: 0.7087 MB / 477.4 MB, free: 9.301 MB / 346.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3436, allocations: 0 / 477.4 MB, free: 9.301 MB / 346.7 MB Notification: Performance of Templates: time 0.002426/0.346, allocations: 0.6211 MB / 478 MB, free: 8.957 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches