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.0007611/0.0007611, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001048/0.001809, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007055/0.0007055, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008527/0.001558, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 0.9024/0.9024, allocations: 177.2 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1134/1.016, allocations: 53.65 MB / 243.3 MB, free: 15.59 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.933e-06/1.933e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.346e-05/2.54e-05, allocations: 6.25 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002648/0.002674, allocations: 1.712 MB / 246.2 MB, free: 12.6 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008895/0.003563, allocations: 0.5569 MB / 246.8 MB, free: 12.04 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.00369, allocations: 0 / 246.8 MB, free: 12.04 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.812e-05/0.003758, allocations: 7.875 kB / 246.8 MB, free: 12.03 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.003858, allocations: 11.88 kB / 246.8 MB, free: 12.02 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.004147, allocations: 63.73 kB / 246.9 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.004263, allocations: 55.78 kB / 246.9 MB, free: 11.9 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.004365, allocations: 23.92 kB / 247 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.004511, allocations: 35.91 kB / 247 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.561e-05/0.004576, allocations: 19.91 kB / 247 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.004596, allocations: 4 kB / 247 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.504e-05/0.004671, allocations: 11.98 kB / 247 MB, free: 11.81 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.044e-05/0.004732, allocations: 11.94 kB / 247 MB, free: 11.8 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.168e-05/0.004763, allocations: 11.94 kB / 247.1 MB, free: 11.79 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.004905, allocations: 51.77 kB / 247.1 MB, free: 11.73 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.491e-05/0.00492, allocations: 4 kB / 247.1 MB, free: 11.73 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.004922, allocations: 0 / 247.1 MB, free: 11.73 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.004936, allocations: 0 / 247.1 MB, free: 11.73 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.0005056/0.005442, allocations: 296.2 kB / 247.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.00549, allocations: 11.97 kB / 247.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001781/0.005668, allocations: 98.02 kB / 247.5 MB, free: 11.29 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.005851, allocations: 137.6 kB / 247.6 MB, free: 11.13 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.005862, allocations: 8.375 kB / 247.6 MB, free: 11.12 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.005872, allocations: 4.375 kB / 247.6 MB, free: 11.12 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.006061, allocations: 135.1 kB / 247.8 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.006068, allocations: 192 / 247.8 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.006076, allocations: 384 / 247.8 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.006082, allocations: 3.938 kB / 247.8 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.598e-05/0.006108, allocations: 15.92 kB / 247.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002182/0.006327, allocations: 158.1 kB / 248 MB, free: 10.77 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001237/0.00645, allocations: 67.66 kB / 248 MB, free: 10.68 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.804e-05/0.006478, allocations: 30.69 kB / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.006501, allocations: 0 / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.006522, allocations: 34.56 kB / 248.1 MB, free: 10.59 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 7.12e-07/0.006523, allocations: 0 / 248.1 MB, free: 10.59 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001367/0.006659, allocations: 65.48 kB / 248.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.006723, allocations: 110.8 kB / 248.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.349e-05/0.006797, allocations: 134.6 kB / 248.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.006808, allocations: 25.95 kB / 248.4 MB, free: 10.21 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.089e-05/0.006839, allocations: 100.1 kB / 248.5 MB, free: 10.11 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.006859, allocations: 11.89 kB / 248.5 MB, free: 10.1 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/0.006885, allocations: 17.7 kB / 248.5 MB, free: 10.08 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.006987, allocations: 318.8 kB / 248.9 MB, free: 9.758 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.218e-05/0.00701, allocations: 4 kB / 248.9 MB, free: 9.754 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.372e-05/0.007033, allocations: 21.83 kB / 248.9 MB, free: 9.727 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.162e-05/0.007075, allocations: 29.78 kB / 248.9 MB, free: 9.691 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.007077, allocations: 0 / 248.9 MB, free: 9.691 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.16e-05/0.007139, allocations: 45.62 kB / 249 MB, free: 9.641 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.007153, allocations: 8.031 kB / 249 MB, free: 9.633 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.00716, allocations: 3.938 kB / 249 MB, free: 9.629 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.007173, allocations: 8 kB / 249 MB, free: 9.621 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.089e-05/0.007234, allocations: 3.984 kB / 249 MB, free: 9.617 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.00724, allocations: 4 kB / 249 MB, free: 9.613 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.827e-05/0.007258, allocations: 0 / 249 MB, free: 9.613 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.007264, allocations: 0 / 249 MB, free: 9.613 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.057e-05/0.007335, allocations: 112.7 kB / 249.1 MB, free: 9.492 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.007378, allocations: 49.62 kB / 249.1 MB, free: 9.438 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.007412, allocations: 20.27 kB / 249.2 MB, free: 9.418 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.007414, allocations: 0 / 249.2 MB, free: 9.418 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.007417, allocations: 4 kB / 249.2 MB, free: 9.414 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.007423, allocations: 4 kB / 249.2 MB, free: 9.41 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.007525, allocations: 73.88 kB / 249.2 MB, free: 9.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.007526, allocations: 0 / 249.2 MB, free: 9.32 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.256e-05/0.007569, allocations: 11.98 kB / 249.2 MB, free: 9.309 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.16e-05/0.0076, allocations: 11.95 kB / 249.3 MB, free: 9.297 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.007602, allocations: 0 / 249.3 MB, free: 9.297 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.00761, allocations: 8 kB / 249.3 MB, free: 9.289 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.007612, allocations: 3.938 kB / 249.3 MB, free: 9.285 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.007616, allocations: 3.984 kB / 249.3 MB, free: 9.281 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.648e-05/0.007702, allocations: 149.2 kB / 249.4 MB, free: 9.113 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.007721, allocations: 4 kB / 249.4 MB, free: 9.109 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.146e-05/0.007753, allocations: 0 / 249.4 MB, free: 9.109 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.007782, allocations: 7.938 kB / 249.4 MB, free: 9.102 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-06/0.007785, allocations: 4 kB / 249.4 MB, free: 9.098 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.805e-05/0.007813, allocations: 35.52 kB / 249.5 MB, free: 9.062 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007813, allocations: 0 / 249.5 MB, free: 9.062 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001201/0.007933, allocations: 8 kB / 249.5 MB, free: 9.055 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 9.898e-05/0.008032, allocations: 80.42 kB / 249.6 MB, free: 8.965 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.774e-05/0.00811, allocations: 32.75 kB / 249.6 MB, free: 8.93 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.008116, allocations: 4 kB / 249.6 MB, free: 8.926 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.52e-05/0.008131, allocations: 12.84 kB / 249.6 MB, free: 8.91 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.008339, allocations: 29.55 kB / 249.6 MB, free: 8.879 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006889/0.009027, allocations: 199.3 kB / 249.8 MB, free: 8.652 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.909e-05/0.009067, allocations: 59.34 kB / 249.9 MB, free: 8.574 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.644e-05/0.009093, allocations: 12.17 kB / 249.9 MB, free: 8.562 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.761e-05/0.009151, allocations: 59.36 kB / 250 MB, free: 8.504 MB / 250.7 MB Notification: Performance of SimCode: time 4.71e-07/0.009151, allocations: 0 / 250 MB, free: 8.504 MB / 250.7 MB Notification: Performance of Templates: time 0.002483/0.01163, allocations: 0.7164 MB / 250.7 MB, free: 7.809 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.430962630547583]