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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00209/0.00209, allocations: 92.62 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002377/0.002377, allocations: 149.4 kB / 24.25 MB, free: 192 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 173.4 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] 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=5010,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=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 267.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.312e-05/3.477e-05, allocations: 9.625 kB / 267.3 MB, free: 6.688 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003149/0.003184, allocations: 1.589 MB / 268.9 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.004216, allocations: 478.4 kB / 269.4 MB, free: 4.613 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.874e-05/0.004294, allocations: 3.938 kB / 269.4 MB, free: 4.609 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.553e-05/0.00436, allocations: 11.92 kB / 269.4 MB, free: 4.598 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.004495, allocations: 15.86 kB / 269.4 MB, free: 4.582 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.00479, allocations: 47.83 kB / 269.5 MB, free: 4.535 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000119/0.004909, allocations: 47.78 kB / 269.5 MB, free: 4.488 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.629e-05/0.005006, allocations: 16.17 kB / 269.5 MB, free: 4.473 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.005107, allocations: 35.84 kB / 269.6 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.812e-05/0.005166, allocations: 15.97 kB / 269.6 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.008e-05/0.005186, allocations: 4 kB / 269.6 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.366e-05/0.005199, allocations: 4 kB / 269.6 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.632e-05/0.005266, allocations: 19.92 kB / 269.6 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.488e-05/0.005311, allocations: 15.94 kB / 269.6 MB, free: 4.379 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.00547, allocations: 59.78 kB / 269.7 MB, free: 4.32 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.005473, allocations: 0 / 269.7 MB, free: 4.32 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.005474, allocations: 0 / 269.7 MB, free: 4.32 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.005478, allocations: 0 / 269.7 MB, free: 4.32 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.0005518/0.00603, allocations: 309.9 kB / 270 MB, free: 3.988 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.006072, allocations: 8.922 kB / 270 MB, free: 3.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.00613, allocations: 20.84 kB / 270 MB, free: 3.961 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.006415, allocations: 145.5 kB / 270.2 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.006433, allocations: 8.359 kB / 270.2 MB, free: 3.785 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.006447, allocations: 4.375 kB / 270.2 MB, free: 3.781 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.006783, allocations: 130.4 kB / 270.3 MB, free: 3.633 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.006792, allocations: 192 / 270.3 MB, free: 3.633 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.006806, allocations: 4.125 kB / 270.3 MB, free: 3.629 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.006812, allocations: 0 / 270.3 MB, free: 3.629 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.006916, allocations: 31.92 kB / 270.3 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003699/0.007285, allocations: 218.3 kB / 270.6 MB, free: 3.348 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.007518, allocations: 75.72 kB / 270.6 MB, free: 3.246 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.523e-05/0.007613, allocations: 42.62 kB / 270.7 MB, free: 3.195 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.007642, allocations: 4 kB / 270.7 MB, free: 3.191 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.007673, allocations: 34.5 kB / 270.7 MB, free: 3.148 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.007675, allocations: 4 kB / 270.7 MB, free: 3.145 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003404/0.008015, allocations: 97.64 kB / 270.8 MB, free: 3.043 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.008129, allocations: 114.8 kB / 270.9 MB, free: 2.906 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.008287, allocations: 138.1 kB / 271.1 MB, free: 2.758 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.008309, allocations: 25.7 kB / 271.1 MB, free: 2.727 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.48e-05/0.008374, allocations: 88.14 kB / 271.2 MB, free: 2.637 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.008394, allocations: 7.953 kB / 271.2 MB, free: 2.629 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-05/0.008442, allocations: 25.66 kB / 271.2 MB, free: 2.598 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.008619, allocations: 318.8 kB / 271.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.089e-05/0.00867, allocations: 7.984 kB / 271.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.676e-05/0.008727, allocations: 25.88 kB / 271.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.008832, allocations: 45.58 kB / 271.6 MB, free: 2.188 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.008833, allocations: 0 / 271.6 MB, free: 2.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001622/0.008996, allocations: 69.61 kB / 271.7 MB, free: 2.113 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.009015, allocations: 8 kB / 271.7 MB, free: 2.105 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.009021, allocations: 0 / 271.7 MB, free: 2.105 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.009046, allocations: 0 / 271.7 MB, free: 2.105 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.273e-05/0.009128, allocations: 11.92 kB / 271.7 MB, free: 2.094 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.009133, allocations: 0 / 271.7 MB, free: 2.094 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.637e-05/0.009179, allocations: 12.31 kB / 271.7 MB, free: 2.082 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.009186, allocations: 0 / 271.7 MB, free: 2.082 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 0.0001192/0.009305, allocations: 125.8 kB / 271.8 MB, free: 1.949 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.781e-05/0.009403, allocations: 53.58 kB / 271.9 MB, free: 1.891 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.781e-05/0.009441, allocations: 12.34 kB / 271.9 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.009446, allocations: 4 kB / 271.9 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.009449, allocations: 0 / 271.9 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.009452, allocations: 0 / 271.9 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001927/0.009645, allocations: 129.2 kB / 272 MB, free: 1.711 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.009646, allocations: 0 / 272 MB, free: 1.711 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.302e-05/0.009709, allocations: 15.94 kB / 272 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.009715, allocations: 3.938 kB / 272 MB, free: 1.691 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.009731, allocations: 12 kB / 272 MB, free: 1.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.009735, allocations: 3.984 kB / 272 MB, free: 1.676 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.009736, allocations: 0 / 272 MB, free: 1.676 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.009993, allocations: 181.2 kB / 272.2 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-05/0.01003, allocations: 11.95 kB / 272.2 MB, free: 1.465 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.01006, allocations: 19.86 kB / 272.2 MB, free: 1.445 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.773e-05/0.01014, allocations: 0 / 272.2 MB, free: 1.445 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.01018, allocations: 4 kB / 272.3 MB, free: 1.441 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-06/0.01018, allocations: 4 kB / 272.3 MB, free: 1.438 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.627e-05/0.01028, allocations: 114.3 kB / 272.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01028, allocations: 0 / 272.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002402/0.01052, allocations: 8 kB / 272.4 MB, free: 1.32 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.0001252/0.01065, allocations: 99.25 kB / 272.5 MB, free: 1.215 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001627/0.01081, allocations: 39.91 kB / 272.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01081, allocations: 0 / 272.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.845e-05/0.01086, allocations: 12.12 kB / 272.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000378/0.01124, allocations: 29.36 kB / 272.6 MB, free: 1.133 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004324/0.01167, allocations: 192.3 kB / 272.7 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.742e-05/0.01177, allocations: 83.33 kB / 272.8 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.157e-05/0.0118, allocations: 0 / 272.8 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.751e-05/0.01184, allocations: 12.5 kB / 272.8 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of SimCode: time 4.2e-07/0.01184, allocations: 0 / 272.8 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of Templates: time 0.003454/0.01529, allocations: 0.6703 MB / 273.5 MB, free: 152 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.219101160066202]