Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 203.2 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 226.5 MB / 245.4 MB, free: 8.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007204/0.0007204, allocations: 108.3 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000222/0.0002222, allocations: 8 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2464, allocations: 51.28 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1012/0.3477, allocations: 78.05 MB / 486.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.348, allocations: 83.94 kB / 486.8 MB, free: 13.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00474/0.3528, allocations: 1.675 MB / 488.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3528, allocations: 0 / 488.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.3528, allocations: 4 kB / 488.5 MB, free: 11.84 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.0004107/0.3532, allocations: 371.2 kB / 488.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.3533, allocations: 16.75 kB / 488.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.3535, allocations: 21.42 kB / 488.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001918/0.3537, allocations: 186.5 kB / 489.1 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.3537, allocations: 8.375 kB / 489.1 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.3537, allocations: 384 / 489.1 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002943/0.354, allocations: 142.3 kB / 489.2 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.354, allocations: 8.172 kB / 489.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.354, allocations: 3.938 kB / 489.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3541, allocations: 0 / 489.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.759e-05/0.3541, allocations: 23.98 kB / 489.2 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004548/0.3546, allocations: 365.8 kB / 489.6 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.3548, allocations: 160.8 kB / 489.8 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.21e-05/0.3549, allocations: 42.62 kB / 489.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.355, allocations: 4 kB / 489.8 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.355, allocations: 34.56 kB / 489.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.355, allocations: 0 / 489.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.000306/0.3553, allocations: 105.5 kB / 489.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.3554, allocations: 107 kB / 490 MB, free: 10.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.3555, allocations: 138.1 kB / 490.2 MB, free: 9.863 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.3556, allocations: 29.7 kB / 490.2 MB, free: 9.828 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/0.3556, allocations: 88.14 kB / 490.3 MB, free: 9.738 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.958e-05/0.3556, allocations: 11.83 kB / 490.3 MB, free: 9.727 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-06/0.3556, allocations: 4 kB / 490.3 MB, free: 9.723 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3558, allocations: 319 kB / 490.6 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.328e-05/0.3558, allocations: 15.98 kB / 490.6 MB, free: 9.387 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.207e-05/0.3559, allocations: 48.22 kB / 490.7 MB, free: 9.324 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.356, allocations: 73.45 kB / 490.7 MB, free: 9.238 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.356, allocations: 3.938 kB / 490.8 MB, free: 9.234 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001628/0.3562, allocations: 93.52 kB / 490.8 MB, free: 9.137 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.3562, allocations: 8 kB / 490.9 MB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3562, allocations: 0 / 490.9 MB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3563, allocations: 0 / 490.9 MB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.125e-05/0.3563, allocations: 15.92 kB / 490.9 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.3564, allocations: 4 kB / 490.9 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.815e-05/0.3564, allocations: 8 kB / 490.9 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.3564, allocations: 4 kB / 490.9 MB, free: 9.098 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 9.4e-05/0.3565, allocations: 125.9 kB / 491 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.407e-05/0.3566, allocations: 61.53 kB / 491.1 MB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.069e-05/0.3567, allocations: 16.19 kB / 491.1 MB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3567, allocations: 3.938 kB / 491.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3567, allocations: 0 / 491.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.3567, allocations: 0 / 491.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/0.3569, allocations: 177.6 kB / 491.3 MB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3569, allocations: 4 kB / 491.3 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.243e-05/0.357, allocations: 8 kB / 491.3 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.357, allocations: 3.984 kB / 491.3 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.357, allocations: 4 kB / 491.3 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.357, allocations: 4 kB / 491.3 MB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.357, allocations: 0 / 491.3 MB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.3573, allocations: 263.5 kB / 491.5 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-05/0.3573, allocations: 101 kB / 491.6 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.3574, allocations: 0 / 491.6 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.346e-05/0.3575, allocations: 4 kB / 491.6 MB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.032e-05/0.3575, allocations: 3.984 kB / 491.6 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.3575, allocations: 4 kB / 491.7 MB, free: 8.219 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.245e-05/0.3576, allocations: 106.5 kB / 491.8 MB, free: 8.117 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3576, allocations: 0 / 491.8 MB, free: 8.117 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002571/0.3579, allocations: 12 kB / 491.8 MB, free: 8.105 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.0001325/0.358, allocations: 114.6 kB / 491.9 MB, free: 7.984 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001674/0.3582, allocations: 43.92 kB / 491.9 MB, free: 7.941 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3582, allocations: 0 / 491.9 MB, free: 7.941 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.493e-05/0.3582, allocations: 15.92 kB / 491.9 MB, free: 7.926 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.3587, allocations: 36.66 kB / 492 MB, free: 7.891 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003925/0.3591, allocations: 240.6 kB / 492.2 MB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.3594, allocations: 0.6965 MB / 492.9 MB, free: 6.887 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.934e-05/0.3594, allocations: 11.44 kB / 492.9 MB, free: 6.875 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3594, allocations: 0 / 492.9 MB, free: 6.875 MB / 362.7 MB Notification: Performance of Templates: time 0.002172/0.3616, allocations: 0.8589 MB / 493.8 MB, free: 6.02 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches