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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.00131/0.00131, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.609/1.609, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002204/0.002204, allocations: 60 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1656, allocations: 50.54 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003606/0.1692, allocations: 1.59 MB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.1703, allocations: 0.5609 MB / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.868e-05/0.1704, allocations: 0 / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.52e-05/0.1705, allocations: 11.88 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.1706, allocations: 3.938 kB / 361.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003868/0.171, allocations: 67.69 kB / 361.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.1712, allocations: 47.84 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.1713, allocations: 23.97 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.1714, allocations: 35.8 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.694e-05/0.1715, allocations: 19.91 kB / 361.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.553e-05/0.1715, allocations: 7.938 kB / 361.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.831e-05/0.1716, allocations: 11.98 kB / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.029e-05/0.1716, allocations: 8 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.88e-05/0.1717, allocations: 43.72 kB / 361.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001868/0.1719, allocations: 63.73 kB / 361.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1719, allocations: 0 / 361.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1719, allocations: 4 kB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.1719, allocations: 3.984 kB / 361.4 MB, free: 10.8 MB / 302.1 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.000547/0.1725, allocations: 383.1 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1725, allocations: 12.03 kB / 361.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.1727, allocations: 16.83 kB / 361.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.173, allocations: 206.4 kB / 362 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.173, allocations: 4.375 kB / 362 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.173, allocations: 8.375 kB / 362 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003191/0.1734, allocations: 134.2 kB / 362.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1734, allocations: 4 kB / 362.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.1734, allocations: 3.938 kB / 362.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1734, allocations: 4 kB / 362.2 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.129e-05/0.1735, allocations: 23.92 kB / 362.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004189/0.1739, allocations: 282.6 kB / 362.5 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.1742, allocations: 160.9 kB / 362.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.712e-05/0.1743, allocations: 42.56 kB / 362.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.1744, allocations: 0 / 362.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.1744, allocations: 38.55 kB / 362.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.1744, allocations: 4 kB / 362.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003072/0.1747, allocations: 89.52 kB / 362.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.337e-05/0.1748, allocations: 118.7 kB / 362.9 MB, free: 9.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.175, allocations: 133.8 kB / 363 MB, free: 8.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.175, allocations: 29.7 kB / 363.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.564e-05/0.1751, allocations: 96.22 kB / 363.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.1751, allocations: 15.91 kB / 363.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.1751, allocations: 17.72 kB / 363.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1753, allocations: 326.8 kB / 363.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.097e-05/0.1753, allocations: 11.98 kB / 363.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.45e-05/0.1754, allocations: 40.3 kB / 363.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.1755, allocations: 68.2 kB / 363.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1755, allocations: 0 / 363.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001593/0.1757, allocations: 85.45 kB / 363.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1757, allocations: 12.12 kB / 363.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1757, allocations: 0 / 363.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.1757, allocations: 0 / 363.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.607e-05/0.1758, allocations: 11.98 kB / 363.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.1758, allocations: 4 kB / 363.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.006e-05/0.1759, allocations: 8.234 kB / 363.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/0.1759, allocations: 0 / 363.8 MB, free: 8.129 MB / 302.1 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.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000168/0.1761, allocations: 129.7 kB / 363.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.963e-05/0.1762, allocations: 53.59 kB / 363.9 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.285e-05/0.1762, allocations: 16.23 kB / 363.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.1763, allocations: 4 kB / 364 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1763, allocations: 0 / 364 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1763, allocations: 0 / 364 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.1765, allocations: 185.5 kB / 364.1 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1765, allocations: 3.938 kB / 364.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.685e-05/0.1766, allocations: 12 kB / 364.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.1766, allocations: 7.938 kB / 364.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.1766, allocations: 0 / 364.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1766, allocations: 3.984 kB / 364.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.1766, allocations: 8 kB / 364.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/0.1768, allocations: 185.1 kB / 364.3 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.908e-05/0.1769, allocations: 89 kB / 364.4 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.177, allocations: 8 kB / 364.4 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.784e-05/0.177, allocations: 0 / 364.4 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.1771, allocations: 8 kB / 364.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.1771, allocations: 3.984 kB / 364.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.951e-05/0.1772, allocations: 114.3 kB / 364.6 MB, free: 7.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1772, allocations: 0 / 364.6 MB, free: 7.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000235/0.1774, allocations: 12 kB / 364.6 MB, free: 7.191 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001455/0.1776, allocations: 103.2 kB / 364.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001724/0.1778, allocations: 48.05 kB / 364.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1778, allocations: 4.062 kB / 364.7 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.305e-05/0.1778, allocations: 11.98 kB / 364.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.1782, allocations: 31.52 kB / 364.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003892/0.1786, allocations: 188.9 kB / 365 MB, free: 6.773 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.1789, allocations: 0.7003 MB / 365.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.204e-05/0.179, allocations: 7.781 kB / 365.7 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.199e-05/0.179, allocations: 11.44 kB / 365.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.179, allocations: 0 / 365.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of Templates: time 0.003244/0.1823, allocations: 0.6452 MB / 366.3 MB, free: 5.398 MB / 302.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches