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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001192/0.001192, allocations: 198.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.2 MB / 245 MB, free: 5.859 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008142/0.0008143, allocations: 104.9 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002376/0.0002378, allocations: 11.98 kB / 357.9 MB, free: 9.312 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1879, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08498/0.273, allocations: 78.11 MB / 487.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.2732, allocations: 87.94 kB / 487.6 MB, free: 12.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004268/0.2775, allocations: 1.672 MB / 489.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2775, allocations: 0 / 489.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.2775, allocations: 0 / 489.3 MB, free: 10.74 MB / 362.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.0003277/0.2778, allocations: 379 kB / 489.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.2779, allocations: 12.03 kB / 489.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.278, allocations: 19.84 kB / 489.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.2782, allocations: 193.2 kB / 489.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.2782, allocations: 3.953 kB / 489.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.2782, allocations: 4 kB / 489.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002549/0.2785, allocations: 145 kB / 490 MB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.2785, allocations: 0 / 490 MB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.2785, allocations: 0 / 490 MB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.706e-06/0.2785, allocations: 3.938 kB / 490 MB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.474e-05/0.2786, allocations: 31.92 kB / 490.1 MB, free: 9.863 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000362/0.279, allocations: 361.9 kB / 490.4 MB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.2792, allocations: 168.9 kB / 490.6 MB, free: 9.242 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.2792, allocations: 0 / 490.6 MB, free: 9.242 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.2792, allocations: 34.62 kB / 490.6 MB, free: 9.199 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.2793, allocations: 0 / 490.6 MB, free: 9.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002726/0.2795, allocations: 101.6 kB / 490.7 MB, free: 9.094 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.2796, allocations: 114.9 kB / 490.8 MB, free: 8.957 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.82e-05/0.2797, allocations: 121.3 kB / 490.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.2797, allocations: 29.7 kB / 491 MB, free: 8.793 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.331e-05/0.2798, allocations: 88.33 kB / 491.1 MB, free: 8.699 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.2798, allocations: 11.83 kB / 491.1 MB, free: 8.688 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.2798, allocations: 0 / 491.1 MB, free: 8.688 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.036e-05/0.2799, allocations: 327 kB / 491.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.96e-05/0.2799, allocations: 15.98 kB / 491.4 MB, free: 8.344 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.295e-05/0.28, allocations: 44.28 kB / 491.5 MB, free: 8.285 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.3e-05/0.2801, allocations: 23.98 kB / 491.5 MB, free: 8.262 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2801, allocations: 4 kB / 491.5 MB, free: 8.258 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001492/0.2802, allocations: 93.44 kB / 491.6 MB, free: 8.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.2802, allocations: 8 kB / 491.6 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2803, allocations: 0 / 491.6 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.2803, allocations: 8.125 kB / 491.6 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.009e-05/0.2803, allocations: 8 kB / 491.6 MB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.2804, allocations: 3.938 kB / 491.6 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.751e-05/0.2804, allocations: 7.984 kB / 491.6 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.2804, allocations: 4 kB / 491.6 MB, free: 8.121 MB / 362.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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 7.267e-05/0.2805, allocations: 128.2 kB / 491.7 MB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.249e-05/0.2806, allocations: 49.59 kB / 491.8 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.838e-05/0.2806, allocations: 12.25 kB / 491.8 MB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2806, allocations: 7.938 kB / 491.8 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2807, allocations: 4 kB / 491.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2807, allocations: 3.984 kB / 491.8 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.2809, allocations: 177.6 kB / 492 MB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2809, allocations: 0 / 492 MB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.902e-05/0.2809, allocations: 19.92 kB / 492 MB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.281, allocations: 0 / 492 MB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.886e-06/0.281, allocations: 4 kB / 492 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.281, allocations: 3.938 kB / 492 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.281, allocations: 0 / 492 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.2812, allocations: 287 kB / 492.3 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.486e-05/0.2813, allocations: 93 kB / 492.4 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.2813, allocations: 7.984 kB / 492.4 MB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.2814, allocations: 9.25 kB / 492.4 MB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.678e-05/0.2814, allocations: 7.938 kB / 492.4 MB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.2814, allocations: 0 / 492.4 MB, free: 7.199 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.193e-05/0.2815, allocations: 111.2 kB / 492.5 MB, free: 7.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2815, allocations: 0 / 492.5 MB, free: 7.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002461/0.2818, allocations: 8 kB / 492.5 MB, free: 7.082 MB / 362.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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.000107/0.2819, allocations: 107.2 kB / 492.6 MB, free: 6.969 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001553/0.282, allocations: 47.91 kB / 492.7 MB, free: 6.922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2821, allocations: 0 / 492.7 MB, free: 6.922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.352e-05/0.2821, allocations: 16 kB / 492.7 MB, free: 6.906 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.2824, allocations: 27.95 kB / 492.7 MB, free: 6.879 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003098/0.2827, allocations: 215.2 kB / 492.9 MB, free: 6.629 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.2829, allocations: 0.6995 MB / 493.6 MB, free: 5.906 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.242e-05/0.283, allocations: 12.5 kB / 493.6 MB, free: 5.895 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.205e-05/0.283, allocations: 11.44 kB / 493.7 MB, free: 5.883 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.283, allocations: 0 / 493.7 MB, free: 5.883 MB / 362.7 MB Notification: Performance of Templates: time 0.002148/0.2852, allocations: 0.5533 MB / 494.2 MB, free: 5.355 MB / 362.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