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.001421/0.001421, allocations: 80.72 kB / 22.21 MB, free: 2.289 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.001009/0.001009, allocations: 148.4 kB / 25.6 MB, free: 8.926 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.8872/0.8872, allocations: 173.4 MB / 202.3 MB, free: 8.309 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 2.845e-06/2.845e-06, allocations: 4 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.967e-05/2.251e-05, allocations: 2.312 kB / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002239/0.002262, allocations: 1.633 MB / 270.8 MB, free: 8.129 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006528/0.002915, allocations: 476.6 kB / 271.3 MB, free: 7.66 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.18e-05/0.002996, allocations: 7.938 kB / 271.3 MB, free: 7.652 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.317e-05/0.00304, allocations: 3.938 kB / 271.3 MB, free: 7.648 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.003166, allocations: 13.2 kB / 271.3 MB, free: 7.637 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002227/0.003389, allocations: 51.77 kB / 271.4 MB, free: 7.586 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.241e-05/0.003481, allocations: 60.39 kB / 271.4 MB, free: 7.527 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.98e-05/0.003561, allocations: 4.188 kB / 271.5 MB, free: 7.523 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.869e-05/0.00364, allocations: 36.48 kB / 271.5 MB, free: 7.488 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.719e-05/0.003687, allocations: 16.86 kB / 271.5 MB, free: 7.473 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.556e-05/0.003702, allocations: 0 / 271.5 MB, free: 7.473 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.167e-06/0.003712, allocations: 4 kB / 271.5 MB, free: 7.469 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.458e-05/0.003756, allocations: 21.42 kB / 271.5 MB, free: 7.449 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.598e-05/0.003782, allocations: 15.92 kB / 271.5 MB, free: 7.434 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.763e-05/0.00388, allocations: 43.77 kB / 271.6 MB, free: 7.391 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.754e-06/0.003881, allocations: 0 / 271.6 MB, free: 7.391 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.003882, allocations: 1.375 kB / 271.6 MB, free: 7.391 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.003886, allocations: 4 kB / 271.6 MB, free: 7.387 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.000331/0.004217, allocations: 408.2 kB / 272 MB, free: 6.953 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.004258, allocations: 12.75 kB / 272 MB, free: 6.941 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.814e-05/0.004286, allocations: 12.84 kB / 272 MB, free: 6.93 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.004418, allocations: 145.4 kB / 272.2 MB, free: 6.762 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-06/0.004427, allocations: 5.125 kB / 272.2 MB, free: 6.758 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.004438, allocations: 8.359 kB / 272.2 MB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.004603, allocations: 135 kB / 272.3 MB, free: 6.59 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.00461, allocations: 8.125 kB / 272.3 MB, free: 6.582 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.004621, allocations: 12.12 kB / 272.3 MB, free: 6.57 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.004625, allocations: 0 / 272.3 MB, free: 6.57 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.073e-05/0.004646, allocations: 15.97 kB / 272.3 MB, free: 6.555 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002004/0.004846, allocations: 255.8 kB / 272.6 MB, free: 6.27 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.004967, allocations: 97.23 kB / 272.7 MB, free: 6.137 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.861e-05/0.004996, allocations: 35.12 kB / 272.7 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.005011, allocations: 0 / 272.7 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.005032, allocations: 41.39 kB / 272.8 MB, free: 6.039 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 8.02e-07/0.005033, allocations: 4 kB / 272.8 MB, free: 6.035 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001333/0.005166, allocations: 77.44 kB / 272.8 MB, free: 5.953 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.005223, allocations: 106.8 kB / 272.9 MB, free: 5.824 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.115e-05/0.005304, allocations: 196.4 kB / 273.1 MB, free: 5.617 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.005313, allocations: 29.69 kB / 273.2 MB, free: 5.582 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.005355, allocations: 130.9 kB / 273.3 MB, free: 5.449 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.005371, allocations: 15.88 kB / 273.3 MB, free: 5.434 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.768e-05/0.005399, allocations: 27.33 kB / 273.3 MB, free: 5.398 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.00551, allocations: 496.1 kB / 273.8 MB, free: 4.902 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.068e-05/0.005521, allocations: 4.25 kB / 273.8 MB, free: 4.898 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.082e-05/0.005542, allocations: 31.34 kB / 273.9 MB, free: 4.859 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.404e-05/0.005576, allocations: 27.31 kB / 273.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.005578, allocations: 0 / 273.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.521e-05/0.005643, allocations: 45.69 kB / 273.9 MB, free: 4.773 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.005658, allocations: 15.88 kB / 273.9 MB, free: 4.758 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.005663, allocations: 0 / 273.9 MB, free: 4.758 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.624e-06/0.005671, allocations: 0 / 273.9 MB, free: 4.758 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.707e-05/0.005718, allocations: 4 kB / 273.9 MB, free: 4.754 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.317e-06/0.005721, allocations: 0 / 273.9 MB, free: 4.754 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.18e-05/0.005743, allocations: 15.91 kB / 274 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-06/0.00575, allocations: 4 kB / 274 MB, free: 4.734 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.389e-05/0.005824, allocations: 160.5 kB / 274.1 MB, free: 4.566 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.241e-05/0.005876, allocations: 53.58 kB / 274.2 MB, free: 4.508 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.005907, allocations: 12.72 kB / 274.2 MB, free: 4.488 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.00591, allocations: 0 / 274.2 MB, free: 4.488 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.005912, allocations: 3.938 kB / 274.2 MB, free: 4.484 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.00592, allocations: 7.984 kB / 274.2 MB, free: 4.477 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.006029, allocations: 109.2 kB / 274.3 MB, free: 4.344 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.00603, allocations: 0 / 274.3 MB, free: 4.344 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.123e-05/0.006062, allocations: 11.98 kB / 274.3 MB, free: 4.332 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.006064, allocations: 4 kB / 274.3 MB, free: 4.328 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.006069, allocations: 4 kB / 274.3 MB, free: 4.324 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.006071, allocations: 7.938 kB / 274.3 MB, free: 4.316 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.006072, allocations: 0 / 274.3 MB, free: 4.316 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.006186, allocations: 211.2 kB / 274.5 MB, free: 4.082 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.097e-05/0.006217, allocations: 15.94 kB / 274.6 MB, free: 4.066 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.006233, allocations: 4 kB / 274.6 MB, free: 4.062 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.751e-05/0.006271, allocations: 7.938 kB / 274.6 MB, free: 4.055 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.563e-05/0.006297, allocations: 0 / 274.6 MB, free: 4.055 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.006301, allocations: 4.031 kB / 274.6 MB, free: 4.051 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.699e-05/0.006358, allocations: 151.1 kB / 274.7 MB, free: 3.902 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006359, allocations: 0 / 274.7 MB, free: 3.902 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001423/0.006501, allocations: 11.94 kB / 274.7 MB, free: 3.891 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 8.174e-05/0.006583, allocations: 95.25 kB / 274.8 MB, free: 3.789 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.665e-05/0.006649, allocations: 31.61 kB / 274.8 MB, free: 3.754 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.006651, allocations: 0 / 274.8 MB, free: 3.754 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.499e-05/0.006666, allocations: 11.69 kB / 274.9 MB, free: 3.738 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002267/0.006892, allocations: 25.55 kB / 274.9 MB, free: 3.711 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003913/0.007284, allocations: 199.7 kB / 275.1 MB, free: 3.48 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.174e-05/0.007325, allocations: 66.44 kB / 275.1 MB, free: 3.398 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.233e-05/0.007348, allocations: 4 kB / 275.1 MB, free: 3.395 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.86e-05/0.007406, allocations: 78.2 kB / 275.2 MB, free: 3.316 MB / 250.7 MB Notification: Performance of SimCode: time 8.02e-07/0.007407, allocations: 0 / 275.2 MB, free: 3.316 MB / 250.7 MB Notification: Performance of Templates: time 0.002332/0.009739, allocations: 0.7434 MB / 276 MB, free: 2.598 MB / 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=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.6631847778335214]