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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 104 kB / 16.92 MB, free: 5.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 191.3 kB / 17.85 MB, free: 5.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.536/1.536, allocations: 222.9 MB / 241.5 MB, free: 15.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 51.36 kB / 300.6 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.175, allocations: 49.45 MB / 350.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.004726/0.1798, allocations: 1.578 MB / 351.6 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.1812, allocations: 0.4909 MB / 352.1 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.1813, allocations: 7.938 kB / 352.1 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.479e-05/0.1814, allocations: 3.938 kB / 352.1 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.1816, allocations: 11.92 kB / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004746/0.1821, allocations: 51.83 kB / 352.2 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.1823, allocations: 51.78 kB / 352.3 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.1825, allocations: 16.19 kB / 352.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.1826, allocations: 23.91 kB / 352.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.995e-05/0.1827, allocations: 23.86 kB / 352.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.993e-05/0.1827, allocations: 7.938 kB / 352.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.169e-05/0.1828, allocations: 4 kB / 352.3 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.314e-05/0.1829, allocations: 15.92 kB / 352.3 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.912e-05/0.1829, allocations: 31.8 kB / 352.4 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.1831, allocations: 55.73 kB / 352.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1832, allocations: 0 / 352.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1832, allocations: 0 / 352.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.1832, allocations: 4 kB / 352.4 MB, free: 2.016 MB / 286.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.0007354/0.1839, allocations: 387.3 kB / 352.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.344e-05/0.184, allocations: 12.03 kB / 352.8 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.537e-05/0.1841, allocations: 8.844 kB / 352.8 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.1843, allocations: 194.9 kB / 353 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.1843, allocations: 4.375 kB / 353 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.1844, allocations: 4.375 kB / 353 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.1847, allocations: 141.9 kB / 353.2 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1847, allocations: 4 kB / 353.2 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.1847, allocations: 0 / 353.2 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.1848, allocations: 0 / 353.2 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.878e-05/0.1848, allocations: 27.92 kB / 353.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003872/0.1852, allocations: 282.6 kB / 353.5 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002546/0.1855, allocations: 156.9 kB / 353.6 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.841e-05/0.1856, allocations: 46.62 kB / 353.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1856, allocations: 0 / 353.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.1857, allocations: 38.55 kB / 353.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.1857, allocations: 3.938 kB / 353.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003006/0.186, allocations: 97.69 kB / 353.8 MB, free: 416 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.121e-05/0.1861, allocations: 110.8 kB / 353.9 MB, free: 280 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.1862, allocations: 138.2 kB / 354.1 MB, free: 132 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.1862, allocations: 25.7 kB / 354.1 MB, free: 100 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1863, allocations: 88.14 kB / 354.2 MB, free: 8 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.074e-05/0.1864, allocations: 11.97 kB / 354.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.177e-05/0.1864, allocations: 21.72 kB / 354.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1865, allocations: 326.8 kB / 354.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.427e-05/0.1866, allocations: 12 kB / 354.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.427e-05/0.1867, allocations: 48.22 kB / 354.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.1868, allocations: 64.22 kB / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.1868, allocations: 3.984 kB / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001638/0.187, allocations: 89.52 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.187, allocations: 4 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.187, allocations: 0 / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.187, allocations: 4 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.025e-05/0.1871, allocations: 16.06 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.1871, allocations: 3.984 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.97e-05/0.1872, allocations: 4 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.1872, allocations: 4 kB / 354.8 MB, free: 15.35 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.0001163/0.1873, allocations: 125.7 kB / 354.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.559e-05/0.1874, allocations: 57.53 kB / 354.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.829e-05/0.1875, allocations: 16.23 kB / 355 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1875, allocations: 0 / 355 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1875, allocations: 3.938 kB / 355 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1875, allocations: 8 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.1877, allocations: 181.4 kB / 355.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1877, allocations: 0 / 355.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.189e-05/0.1878, allocations: 11.98 kB / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1878, allocations: 0 / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.1878, allocations: 4 kB / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1878, allocations: 4 kB / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1878, allocations: 0 / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002681/0.1881, allocations: 189 kB / 355.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.607e-05/0.1882, allocations: 104.9 kB / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.1882, allocations: 0 / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.238e-05/0.1883, allocations: 4 kB / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.1883, allocations: 0 / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.1883, allocations: 8 kB / 355.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.322e-05/0.1884, allocations: 110.3 kB / 355.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1884, allocations: 4 kB / 355.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002444/0.1887, allocations: 8 kB / 355.6 MB, free: 14.42 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.0001418/0.1888, allocations: 103.5 kB / 355.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001833/0.189, allocations: 47.89 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.189, allocations: 3.938 kB / 355.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.79e-05/0.1891, allocations: 20.23 kB / 355.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004526/0.1896, allocations: 33.25 kB / 355.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004522/0.19, allocations: 192.9 kB / 356 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.1903, allocations: 0.6992 MB / 356.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.995e-05/0.1904, allocations: 7.984 kB / 356.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.592e-05/0.1904, allocations: 11.44 kB / 356.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1904, allocations: 0 / 356.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of Templates: time 0.00346/0.1939, allocations: 0.6342 MB / 357.3 MB, free: 12.62 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches