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.001245/0.001245, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.000946/0.000946, allocations: 141.1 kB / 24.54 MB, free: 36 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 0.9359/0.9359, allocations: 173.3 MB / 201.1 MB, free: 9.328 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: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.447e-05/2.581e-05, allocations: 2.312 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002263/0.002289, allocations: 1.631 MB / 269.6 MB, free: 4.77 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007146/0.003003, allocations: 494.5 kB / 270.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.552e-05/0.003089, allocations: 0 / 270.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.718e-05/0.003146, allocations: 3.938 kB / 270.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001553/0.003301, allocations: 15.86 kB / 270.1 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002792/0.00358, allocations: 51.77 kB / 270.2 MB, free: 4.211 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.00369, allocations: 55.77 kB / 270.2 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.904e-05/0.003789, allocations: 16.17 kB / 270.3 MB, free: 4.141 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.702e-05/0.003876, allocations: 31.89 kB / 270.3 MB, free: 4.109 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.371e-05/0.00393, allocations: 15.98 kB / 270.3 MB, free: 4.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.003953, allocations: 4 kB / 270.3 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.164e-05/0.003965, allocations: 7.938 kB / 270.3 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.092e-05/0.004016, allocations: 11.98 kB / 270.3 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.625e-05/0.004052, allocations: 15.92 kB / 270.3 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.004181, allocations: 55.69 kB / 270.4 MB, free: 4 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.004184, allocations: 0 / 270.4 MB, free: 4 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.004185, allocations: 4 kB / 270.4 MB, free: 3.996 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.00419, allocations: 0 / 270.4 MB, free: 3.996 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.0004278/0.004618, allocations: 404.3 kB / 270.8 MB, free: 3.566 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.004661, allocations: 8.922 kB / 270.8 MB, free: 3.559 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.845e-05/0.00471, allocations: 16.84 kB / 270.8 MB, free: 3.543 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.004888, allocations: 140.4 kB / 271 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.004898, allocations: 4.375 kB / 271 MB, free: 3.375 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/0.004911, allocations: 8.375 kB / 271 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/0.00518, allocations: 153.2 kB / 271.1 MB, free: 3.188 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.005192, allocations: 4.188 kB / 271.1 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.005203, allocations: 4.125 kB / 271.1 MB, free: 3.18 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.00521, allocations: 0 / 271.1 MB, free: 3.18 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.147e-05/0.005241, allocations: 19.92 kB / 271.2 MB, free: 3.16 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003156/0.005557, allocations: 271.2 kB / 271.4 MB, free: 2.852 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001647/0.005721, allocations: 97.17 kB / 271.5 MB, free: 2.719 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.127e-05/0.005763, allocations: 43.17 kB / 271.6 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.005781, allocations: 0 / 271.6 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.005805, allocations: 45.27 kB / 271.6 MB, free: 2.609 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.005806, allocations: 0 / 271.6 MB, free: 2.609 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002139/0.00602, allocations: 77.56 kB / 271.7 MB, free: 2.527 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.006104, allocations: 106.8 kB / 271.8 MB, free: 2.398 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.006208, allocations: 193.9 kB / 272 MB, free: 2.191 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.006219, allocations: 29.7 kB / 272 MB, free: 2.156 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.718e-05/0.006267, allocations: 142.8 kB / 272.1 MB, free: 2.012 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.006284, allocations: 8.203 kB / 272.1 MB, free: 2.004 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.006315, allocations: 27.38 kB / 272.2 MB, free: 1.969 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.006429, allocations: 0.4884 MB / 272.7 MB, free: 1.469 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.669e-05/0.006445, allocations: 4 kB / 272.7 MB, free: 1.465 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.006548, allocations: 23.31 kB / 272.7 MB, free: 1.434 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.051e-05/0.006588, allocations: 31.36 kB / 272.7 MB, free: 1.395 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.00659, allocations: 0 / 272.7 MB, free: 1.395 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.632e-05/0.006656, allocations: 61.8 kB / 272.8 MB, free: 1.328 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.00667, allocations: 4 kB / 272.8 MB, free: 1.324 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.006674, allocations: 0 / 272.8 MB, free: 1.324 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.006687, allocations: 8.078 kB / 272.8 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.255e-05/0.00675, allocations: 3.984 kB / 272.8 MB, free: 1.312 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.006755, allocations: 4 kB / 272.8 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.106e-05/0.006776, allocations: 3.938 kB / 272.8 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.006783, allocations: 4 kB / 272.8 MB, free: 1.301 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 6.877e-05/0.006852, allocations: 164.6 kB / 273 MB, free: 1.129 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.006903, allocations: 57.53 kB / 273 MB, free: 1.066 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.761e-05/0.006941, allocations: 16.33 kB / 273 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.006943, allocations: 0 / 273 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.006947, allocations: 0 / 273 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.00695, allocations: 4 kB / 273 MB, free: 1.039 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.007053, allocations: 124.6 kB / 273.2 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.007054, allocations: 0 / 273.2 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.527e-05/0.00709, allocations: 15.98 kB / 273.2 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.007094, allocations: 3.938 kB / 273.2 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.007101, allocations: 4 kB / 273.2 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.007102, allocations: 0 / 273.2 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.007104, allocations: 0 / 273.2 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001188/0.007222, allocations: 231.2 kB / 273.4 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.071e-05/0.007253, allocations: 15.95 kB / 273.4 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.00728, allocations: 7.922 kB / 273.4 MB, free: 0.582 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.618e-05/0.007316, allocations: 8 kB / 273.4 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.151e-05/0.007348, allocations: 3.938 kB / 273.4 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.007352, allocations: 4 kB / 273.4 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.557e-05/0.007408, allocations: 150.2 kB / 273.6 MB, free: 432 kB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.007408, allocations: 0 / 273.6 MB, free: 432 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001456/0.007554, allocations: 8 kB / 273.6 MB, free: 424 kB / 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 7.545e-05/0.007629, allocations: 95.25 kB / 273.7 MB, free: 320 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.474e-05/0.007714, allocations: 31.61 kB / 273.7 MB, free: 284 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.007716, allocations: 4 kB / 273.7 MB, free: 280 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.388e-05/0.00773, allocations: 15.69 kB / 273.7 MB, free: 260 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.007982, allocations: 28.55 kB / 273.8 MB, free: 232 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004549/0.008437, allocations: 187.8 kB / 274 MB, free: 8 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.055e-05/0.008488, allocations: 67.28 kB / 274 MB, free: 15.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.47e-05/0.008513, allocations: 7.984 kB / 274 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.055e-05/0.008543, allocations: 16.5 kB / 274 MB, free: 15.9 MB / 266.7 MB Notification: Performance of SimCode: time 6.62e-07/0.008544, allocations: 4.125 kB / 274.1 MB, free: 15.89 MB / 266.7 MB Notification: Performance of Templates: time 0.002697/0.01124, allocations: 0.6996 MB / 274.8 MB, free: 15.21 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] 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","",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.637345649767667]