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.0009645/0.0009645, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001285/0.002249, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007478/0.0007478, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001048/0.001796, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.024/1.024, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1114/1.135, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] 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 1.623e-06/1.623e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.358e-05/3.521e-05, allocations: 5.828 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003137/0.003172, allocations: 1.709 MB / 246.4 MB, free: 12.5 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009519/0.004124, allocations: 0.5607 MB / 247 MB, free: 11.93 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.877e-05/0.004223, allocations: 3.938 kB / 247 MB, free: 11.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.912e-05/0.004272, allocations: 3.938 kB / 247 MB, free: 11.92 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.453e-05/0.004366, allocations: 19.86 kB / 247 MB, free: 11.9 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002999/0.004666, allocations: 63.73 kB / 247.1 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.004802, allocations: 47.8 kB / 247.1 MB, free: 11.79 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.004905, allocations: 11.94 kB / 247.1 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.005098, allocations: 47.89 kB / 247.2 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.389e-05/0.005162, allocations: 19.95 kB / 247.2 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.171e-05/0.005184, allocations: 7.938 kB / 247.2 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.057e-05/0.005245, allocations: 11.94 kB / 247.2 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.8e-05/0.005293, allocations: 11.94 kB / 247.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.605e-05/0.005319, allocations: 8 kB / 247.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.005473, allocations: 51.77 kB / 247.3 MB, free: 11.62 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.005484, allocations: 0 / 247.3 MB, free: 11.62 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.005485, allocations: 0 / 247.3 MB, free: 11.62 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.005497, allocations: 0 / 247.3 MB, free: 11.62 MB / 250.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.0004556/0.005953, allocations: 300.2 kB / 247.6 MB, free: 11.31 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.005994, allocations: 8.031 kB / 247.6 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.006193, allocations: 98.02 kB / 247.7 MB, free: 11.19 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.006392, allocations: 145.5 kB / 247.8 MB, free: 11.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.006402, allocations: 4.375 kB / 247.8 MB, free: 11.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.006414, allocations: 4.375 kB / 247.8 MB, free: 11.01 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.006711, allocations: 135.1 kB / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.00672, allocations: 192 / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.006728, allocations: 384 / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.006735, allocations: 3.938 kB / 248 MB, free: 10.85 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.572e-05/0.006761, allocations: 15.92 kB / 248 MB, free: 10.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002437/0.007005, allocations: 158.1 kB / 248.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.007172, allocations: 75.73 kB / 248.2 MB, free: 10.56 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.533e-05/0.007208, allocations: 18.64 kB / 248.2 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.00723, allocations: 4 kB / 248.2 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.007259, allocations: 42.5 kB / 248.3 MB, free: 10.48 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.874e-06/0.007261, allocations: 0 / 248.3 MB, free: 10.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001675/0.007429, allocations: 65.55 kB / 248.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.007491, allocations: 106.8 kB / 248.4 MB, free: 10.28 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.218e-05/0.007583, allocations: 138.9 kB / 248.6 MB, free: 10.13 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.007594, allocations: 29.7 kB / 248.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.787e-05/0.007632, allocations: 92.08 kB / 248.7 MB, free: 10 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.007655, allocations: 11.83 kB / 248.7 MB, free: 9.988 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.121e-05/0.007696, allocations: 25.69 kB / 248.7 MB, free: 9.957 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.007798, allocations: 314.8 kB / 249 MB, free: 9.641 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.339e-05/0.007811, allocations: 0 / 249 MB, free: 9.641 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.234e-05/0.007833, allocations: 25.69 kB / 249.1 MB, free: 9.609 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.805e-05/0.007871, allocations: 13.72 kB / 249.1 MB, free: 9.59 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.007874, allocations: 0 / 249.1 MB, free: 9.59 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.337e-05/0.007957, allocations: 53.91 kB / 249.1 MB, free: 9.531 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.007977, allocations: 6.344 kB / 249.1 MB, free: 9.527 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.007986, allocations: 7.922 kB / 249.2 MB, free: 9.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.008, allocations: 48 / 249.2 MB, free: 9.52 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.212e-05/0.008072, allocations: 7.984 kB / 249.2 MB, free: 9.512 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.045e-06/0.008075, allocations: 0 / 249.2 MB, free: 9.512 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.519e-05/0.0081, allocations: 4 kB / 249.2 MB, free: 9.508 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.008106, allocations: 0 / 249.2 MB, free: 9.508 MB / 250.7 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 7.317e-05/0.008179, allocations: 124.6 kB / 249.3 MB, free: 9.375 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.922e-05/0.008238, allocations: 41.69 kB / 249.3 MB, free: 9.328 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/0.008284, allocations: 12.28 kB / 249.3 MB, free: 9.312 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.008287, allocations: 11.97 kB / 249.3 MB, free: 9.301 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.00829, allocations: 0 / 249.3 MB, free: 9.301 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.008296, allocations: 0 / 249.3 MB, free: 9.301 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000152/0.008448, allocations: 77.88 kB / 249.4 MB, free: 9.207 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.00845, allocations: 0 / 249.4 MB, free: 9.207 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.127e-05/0.008502, allocations: 11.98 kB / 249.4 MB, free: 9.195 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.008541, allocations: 15.95 kB / 249.5 MB, free: 9.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.008543, allocations: 0 / 249.5 MB, free: 9.18 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.00855, allocations: 3.984 kB / 249.5 MB, free: 9.176 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.008557, allocations: 7.938 kB / 249.5 MB, free: 9.168 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.008559, allocations: 3.938 kB / 249.5 MB, free: 9.164 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001228/0.008681, allocations: 145.3 kB / 249.6 MB, free: 9 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.008703, allocations: 4 kB / 249.6 MB, free: 8.996 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.976e-05/0.008763, allocations: 4 kB / 249.6 MB, free: 8.992 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.117e-05/0.008794, allocations: 3.938 kB / 249.6 MB, free: 8.988 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.008803, allocations: 7.984 kB / 249.6 MB, free: 8.98 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.509e-05/0.008838, allocations: 31.53 kB / 249.7 MB, free: 8.949 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008838, allocations: 0 / 249.7 MB, free: 8.949 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001848/0.009022, allocations: 12 kB / 249.7 MB, free: 8.938 MB / 250.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 (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.0001203/0.009143, allocations: 84.39 kB / 249.8 MB, free: 8.844 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.4e-05/0.009227, allocations: 24.84 kB / 249.8 MB, free: 8.816 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.009234, allocations: 4 kB / 249.8 MB, free: 8.812 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.949e-05/0.009263, allocations: 16.8 kB / 249.8 MB, free: 8.793 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.009557, allocations: 88.75 kB / 249.9 MB, free: 8.691 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008877/0.01044, allocations: 195.2 kB / 250.1 MB, free: 8.469 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.74e-05/0.0105, allocations: 63.62 kB / 250.1 MB, free: 8.387 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.084e-05/0.01053, allocations: 8.375 kB / 250.1 MB, free: 8.379 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.007e-05/0.0106, allocations: 59.36 kB / 250.2 MB, free: 8.32 MB / 250.7 MB Notification: Performance of SimCode: time 8.12e-07/0.0106, allocations: 0 / 250.2 MB, free: 8.32 MB / 250.7 MB Notification: Performance of Templates: time 0.002651/0.01325, allocations: 0.7209 MB / 250.9 MB, free: 7.629 MB / 250.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.732237105257809]