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.0007799/0.0007799, allocations: 84 kB / 21.43 MB, free: 3.121 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.003141/0.003141, allocations: 147.8 kB / 24.68 MB, free: 9.438 MB / 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 0.8043/0.8043, allocations: 173.4 MB / 201.2 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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.343e-06/1.343e-06, allocations: 3.938 kB / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.989e-05/2.123e-05, allocations: 2.281 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001887/0.001908, allocations: 1.587 MB / 321.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006161/0.002524, allocations: 478.6 kB / 321.8 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.004e-05/0.002594, allocations: 4 kB / 321.8 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.015e-05/0.002634, allocations: 7.875 kB / 321.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.002759, allocations: 15.86 kB / 321.8 MB, free: 3.742 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000231/0.00299, allocations: 51.75 kB / 321.8 MB, free: 3.691 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.696e-05/0.003087, allocations: 43.86 kB / 321.9 MB, free: 3.648 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.078e-05/0.003178, allocations: 20.14 kB / 321.9 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.148e-05/0.003249, allocations: 35.89 kB / 321.9 MB, free: 3.594 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.659e-05/0.003296, allocations: 19.92 kB / 321.9 MB, free: 3.574 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.003319, allocations: 4 kB / 322 MB, free: 3.57 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.468e-06/0.003328, allocations: 4 kB / 322 MB, free: 3.566 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.311e-05/0.003371, allocations: 15.94 kB / 322 MB, free: 3.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.936e-05/0.0034, allocations: 19.91 kB / 322 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.003508, allocations: 67.66 kB / 322.1 MB, free: 3.465 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.003509, allocations: 0 / 322.1 MB, free: 3.465 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.00351, allocations: 4 kB / 322.1 MB, free: 3.461 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.976e-06/0.003513, allocations: 0 / 322.1 MB, free: 3.461 MB / 282.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.0003665/0.00388, allocations: 302 kB / 322.4 MB, free: 3.137 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.003913, allocations: 8.922 kB / 322.4 MB, free: 3.129 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.081e-05/0.003944, allocations: 12.84 kB / 322.4 MB, free: 3.117 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.004146, allocations: 137.6 kB / 322.5 MB, free: 2.957 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.004158, allocations: 8.375 kB / 322.5 MB, free: 2.949 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.004168, allocations: 384 / 322.5 MB, free: 2.949 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002362/0.004404, allocations: 142.3 kB / 322.7 MB, free: 2.789 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.004413, allocations: 192 / 322.7 MB, free: 2.789 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.004422, allocations: 8.125 kB / 322.7 MB, free: 2.781 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.004427, allocations: 0 / 322.7 MB, free: 2.781 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.296e-05/0.00448, allocations: 23.98 kB / 322.7 MB, free: 2.758 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002579/0.004738, allocations: 222.3 kB / 322.9 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.004888, allocations: 83.77 kB / 323 MB, free: 2.395 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.34e-05/0.004932, allocations: 34.62 kB / 323 MB, free: 2.352 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.004951, allocations: 4 kB / 323 MB, free: 2.348 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.004974, allocations: 38.5 kB / 323.1 MB, free: 2.301 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.004975, allocations: 0 / 323.1 MB, free: 2.301 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001942/0.005169, allocations: 101.5 kB / 323.2 MB, free: 2.195 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.005225, allocations: 106.8 kB / 323.3 MB, free: 2.066 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.00533, allocations: 134.2 kB / 323.4 MB, free: 1.922 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.005343, allocations: 29.7 kB / 323.4 MB, free: 1.887 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.521e-05/0.005378, allocations: 92.12 kB / 323.5 MB, free: 1.793 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.005394, allocations: 7.891 kB / 323.5 MB, free: 1.785 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.879e-05/0.005423, allocations: 25.67 kB / 323.6 MB, free: 1.754 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.687e-05/0.0055, allocations: 318.8 kB / 323.9 MB, free: 1.434 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.83e-05/0.005528, allocations: 8 kB / 323.9 MB, free: 1.426 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.971e-05/0.005558, allocations: 33.89 kB / 323.9 MB, free: 1.387 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.217e-05/0.00561, allocations: 33.64 kB / 323.9 MB, free: 1.348 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.005611, allocations: 4 kB / 323.9 MB, free: 1.344 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.591e-05/0.005697, allocations: 69.88 kB / 324 MB, free: 1.27 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.005709, allocations: 4 kB / 324 MB, free: 1.266 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.005715, allocations: 4 kB / 324 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.005729, allocations: 0 / 324 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.897e-05/0.005778, allocations: 4 kB / 324 MB, free: 1.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.005784, allocations: 8.016 kB / 324 MB, free: 1.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.151e-05/0.005805, allocations: 11.89 kB / 324 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.005812, allocations: 3.984 kB / 324 MB, free: 1.234 MB / 282.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 6.242e-05/0.005874, allocations: 117.8 kB / 324.2 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.14e-05/0.005926, allocations: 57.58 kB / 324.2 MB, free: 1.047 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.005962, allocations: 20.27 kB / 324.2 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.005965, allocations: 0 / 324.2 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.005971, allocations: 4 kB / 324.2 MB, free: 1.016 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.005974, allocations: 0 / 324.2 MB, free: 1.016 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.006142, allocations: 117.3 kB / 324.4 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.006145, allocations: 8 kB / 324.4 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.677e-05/0.006191, allocations: 11.98 kB / 324.4 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.006195, allocations: 3.938 kB / 324.4 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.006202, allocations: 0 / 324.4 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.006205, allocations: 4 kB / 324.4 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.006206, allocations: 0 / 324.4 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001273/0.006333, allocations: 185.1 kB / 324.6 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.164e-05/0.006364, allocations: 15.94 kB / 324.6 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.006379, allocations: 7.938 kB / 324.6 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.281e-05/0.006422, allocations: 7.984 kB / 324.6 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/0.006448, allocations: 4 kB / 324.6 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.006452, allocations: 0 / 324.6 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.883e-05/0.006501, allocations: 117.7 kB / 324.7 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.006501, allocations: 0 / 324.7 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001421/0.006643, allocations: 4 kB / 324.7 MB, free: 500 kB / 282.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 7.049e-05/0.006713, allocations: 99.25 kB / 324.8 MB, free: 392 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001185/0.006832, allocations: 35.92 kB / 324.8 MB, free: 356 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.006833, allocations: 0 / 324.8 MB, free: 356 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.188e-05/0.006855, allocations: 16.05 kB / 324.9 MB, free: 340 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.007085, allocations: 34.89 kB / 324.9 MB, free: 308 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002624/0.007347, allocations: 208.2 kB / 325.1 MB, free: 60 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.101e-05/0.007418, allocations: 79.38 kB / 325.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.629e-05/0.007445, allocations: 12.5 kB / 325.2 MB, free: 15.95 MB / 298.7 MB Notification: Performance of SimCode: time 7.41e-07/0.007445, allocations: 0 / 325.2 MB, free: 15.95 MB / 298.7 MB Notification: Performance of Templates: time 0.001557/0.009003, allocations: 0.8667 MB / 326.1 MB, free: 15.09 MB / 298.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: 3.8321467731148005]