Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 163.9 kB / 23.95 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 177.1 MB / 204.3 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.275e-06/2.275e-06, allocations: 0 / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.298e-05/3.526e-05, allocations: 6.219 kB / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003238/0.003274, allocations: 1.618 MB / 326.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.004642, allocations: 0.5285 MB / 327.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.004746, allocations: 5.906 kB / 327.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.892e-05/0.004805, allocations: 5.484 kB / 327.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001723/0.004977, allocations: 16.12 kB / 327.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.005373, allocations: 62.91 kB / 327.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.00552, allocations: 57.75 kB / 327.4 MB, free: 15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.005627, allocations: 7.109 kB / 327.4 MB, free: 15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.005802, allocations: 42.42 kB / 327.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.902e-05/0.005861, allocations: 13.98 kB / 327.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.481e-05/0.005886, allocations: 3.375 kB / 327.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.872e-05/0.005935, allocations: 7.531 kB / 327.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.257e-05/0.005997, allocations: 19.27 kB / 327.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.514e-05/0.006042, allocations: 19.05 kB / 327.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.006219, allocations: 70.59 kB / 327.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.006222, allocations: 0 / 327.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.006224, allocations: 1.219 kB / 327.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.006235, allocations: 0 / 327.5 MB, free: 14.93 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.0005411/0.006776, allocations: 311.8 kB / 327.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.006812, allocations: 11.12 kB / 327.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.006967, allocations: 22.2 kB / 327.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/0.007204, allocations: 136.6 kB / 328 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.00722, allocations: 7.812 kB / 328 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.007236, allocations: 2.625 kB / 328 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.007565, allocations: 141.9 kB / 328.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.007575, allocations: 192 / 328.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.007587, allocations: 5.422 kB / 328.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.007594, allocations: 4.969 kB / 328.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.225e-05/0.007686, allocations: 23.47 kB / 328.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003325/0.008019, allocations: 222.9 kB / 328.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.00824, allocations: 79.61 kB / 328.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.703e-05/0.008327, allocations: 46.67 kB / 328.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.008351, allocations: 5.797 kB / 328.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.008379, allocations: 37.72 kB / 328.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.352e-06/0.008381, allocations: 1.281 kB / 328.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003113/0.008692, allocations: 96.45 kB / 328.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.008845, allocations: 106.8 kB / 328.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.009008, allocations: 150.1 kB / 328.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.009026, allocations: 25.7 kB / 329 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.175e-05/0.009088, allocations: 88.75 kB / 329 MB, free: 13.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.009106, allocations: 10.95 kB / 329.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.009147, allocations: 18.64 kB / 329.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.009301, allocations: 323.1 kB / 329.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.902e-05/0.00935, allocations: 9 kB / 329.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.477e-05/0.009405, allocations: 24.5 kB / 329.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001057/0.00951, allocations: 41.44 kB / 329.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.009512, allocations: 0 / 329.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001629/0.009675, allocations: 74.69 kB / 329.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.009688, allocations: 5.625 kB / 329.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.009692, allocations: 2.906 kB / 329.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.009709, allocations: 0 / 329.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.441e-05/0.009774, allocations: 8.688 kB / 329.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.009779, allocations: 1.125 kB / 329.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.445e-05/0.009823, allocations: 7.328 kB / 329.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/0.009832, allocations: 1.188 kB / 329.6 MB, free: 13.09 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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.0001176/0.00995, allocations: 118.6 kB / 329.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.01005, allocations: 59.89 kB / 329.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.163e-05/0.0101, allocations: 17.73 kB / 329.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.0101, allocations: 4.781 kB / 329.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.01011, allocations: 1.094 kB / 329.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.01011, allocations: 1.922 kB / 329.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.01032, allocations: 122.6 kB / 329.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.01032, allocations: 1.406 kB / 329.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.067e-05/0.01038, allocations: 9.969 kB / 329.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.01038, allocations: 1.219 kB / 329.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.0104, allocations: 5.859 kB / 329.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.0104, allocations: 2.094 kB / 329.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.0104, allocations: 5.344 kB / 329.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002785/0.01068, allocations: 183.8 kB / 330.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.01074, allocations: 30.28 kB / 330.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.01076, allocations: 6.078 kB / 330.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.655e-05/0.01084, allocations: 7.047 kB / 330.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.894e-05/0.01088, allocations: 3.25 kB / 330.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.223e-06/0.01089, allocations: 3.047 kB / 330.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.865e-05/0.01099, allocations: 107.6 kB / 330.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01099, allocations: 0 / 330.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002321/0.01122, allocations: 6.656 kB / 330.2 MB, free: 12.49 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.0001394/0.01136, allocations: 105.9 kB / 330.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001722/0.01153, allocations: 38.62 kB / 330.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.01153, allocations: 1.25 kB / 330.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.01166, allocations: 13 kB / 330.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.01203, allocations: 27.97 kB / 330.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000425/0.01245, allocations: 190.4 kB / 330.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.835e-05/0.01255, allocations: 83.16 kB / 330.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.311e-05/0.01259, allocations: 7.469 kB / 330.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.568e-05/0.01262, allocations: 16.09 kB / 330.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.01262, allocations: 0 / 330.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of Templates: time 0.003666/0.01629, allocations: 0.6645 MB / 331.4 MB, free: 12 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.356110662221909]