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.001508/0.001508, allocations: 128.5 kB / 17.79 MB, free: 5.246 MB / 14.72 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.001591/0.001591, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 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 1.724/1.724, allocations: 230.5 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001599/0.001599, allocations: 51.92 kB / 373.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1434, allocations: 53.33 MB / 426.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003448/0.1469, allocations: 1.603 MB / 428.4 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1481, allocations: 0.5649 MB / 429 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.1482, allocations: 7.938 kB / 429 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.965e-05/0.1483, allocations: 3.938 kB / 429 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.1485, allocations: 11.88 kB / 429 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003869/0.1489, allocations: 63.8 kB / 429.1 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.149, allocations: 55.78 kB / 429.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.1491, allocations: 8 kB / 429.1 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.1493, allocations: 31.91 kB / 429.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.49e-05/0.1493, allocations: 31.78 kB / 429.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.1494, allocations: 0 / 429.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.995e-05/0.1494, allocations: 12 kB / 429.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.05e-05/0.1495, allocations: 11.94 kB / 429.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.401e-05/0.1495, allocations: 31.8 kB / 429.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.1497, allocations: 67.61 kB / 429.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1497, allocations: 0 / 429.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1497, allocations: 0 / 429.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.1498, allocations: 0 / 429.3 MB, free: 1.746 MB / 350.1 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.0006583/0.1504, allocations: 397.2 kB / 429.7 MB, free: 1.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1505, allocations: 12.03 kB / 429.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.1506, allocations: 16.88 kB / 429.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.1509, allocations: 196.2 kB / 429.9 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.1509, allocations: 4.375 kB / 429.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.1509, allocations: 8.375 kB / 429.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.1513, allocations: 142.1 kB / 430.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1513, allocations: 0 / 430.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.1513, allocations: 0 / 430.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1513, allocations: 0 / 430.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.61e-05/0.1514, allocations: 27.92 kB / 430.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004161/0.1518, allocations: 282.6 kB / 430.4 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.1521, allocations: 160.9 kB / 430.5 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.977e-05/0.1522, allocations: 34.62 kB / 430.6 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.1522, allocations: 0 / 430.6 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.1523, allocations: 38.48 kB / 430.6 MB, free: 236 kB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 3.236e-06/0.1523, allocations: 3.984 kB / 430.6 MB, free: 232 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000332/0.1526, allocations: 97.56 kB / 430.7 MB, free: 128 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.1527, allocations: 114.8 kB / 430.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.1529, allocations: 143.5 kB / 431 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.1529, allocations: 25.7 kB / 431 MB, free: 15.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.03e-05/0.1529, allocations: 96.12 kB / 431.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.153, allocations: 7.891 kB / 431.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.153, allocations: 21.72 kB / 431.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1532, allocations: 327 kB / 431.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.692e-05/0.1532, allocations: 12 kB / 431.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.694e-05/0.1533, allocations: 52.2 kB / 431.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.1534, allocations: 64.2 kB / 431.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1534, allocations: 4 kB / 431.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000178/0.1536, allocations: 85.56 kB / 431.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.1536, allocations: 4 kB / 431.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.1536, allocations: 0 / 431.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1537, allocations: 8.062 kB / 431.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.327e-05/0.1537, allocations: 19.92 kB / 431.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.1537, allocations: 0 / 431.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.852e-05/0.1538, allocations: 7.953 kB / 431.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.1538, allocations: 4 kB / 431.7 MB, free: 15.05 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (7): * Single equations (assignments): 7 * 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.0001148/0.1539, allocations: 117.8 kB / 431.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.906e-05/0.154, allocations: 61.58 kB / 431.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.67e-05/0.1541, allocations: 16.23 kB / 431.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1541, allocations: 0 / 431.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.1541, allocations: 8 kB / 431.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1541, allocations: 4 kB / 431.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002255/0.1543, allocations: 177.6 kB / 432.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1543, allocations: 0 / 432.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.815e-05/0.1544, allocations: 8 kB / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.1544, allocations: 0 / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.1544, allocations: 4 kB / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1544, allocations: 3.984 kB / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1544, allocations: 0 / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.1546, allocations: 197.1 kB / 432.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.826e-05/0.1547, allocations: 93.05 kB / 432.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.1547, allocations: 0 / 432.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.171e-05/0.1548, allocations: 4 kB / 432.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.526e-05/0.1548, allocations: 0 / 432.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.1548, allocations: 12.2 kB / 432.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.678e-05/0.1549, allocations: 108.5 kB / 432.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1549, allocations: 0 / 432.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00024/0.1552, allocations: 12 kB / 432.5 MB, free: 14.13 MB / 366.1 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.0001224/0.1553, allocations: 111.2 kB / 432.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001819/0.1555, allocations: 43.86 kB / 432.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1555, allocations: 0 / 432.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.974e-05/0.1555, allocations: 20.23 kB / 432.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.1559, allocations: 28.06 kB / 432.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003864/0.1563, allocations: 195.4 kB / 432.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.1567, allocations: 0.6963 MB / 433.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.256e-05/0.1567, allocations: 11.72 kB / 433.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.961e-05/0.1567, allocations: 15.44 kB / 433.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1567, allocations: 0 / 433.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of Templates: time 0.003555/0.1603, allocations: 0.6473 MB / 434.2 MB, free: 12.32 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.229678079485893]