Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 118.6 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.636/1.636, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 67.88 kB / 373.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1419, allocations: 53.32 MB / 427.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003088/0.1449, allocations: 1.609 MB / 428.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.1462, allocations: 0.5687 MB / 429.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.1463, allocations: 4 kB / 429.3 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.366e-05/0.1464, allocations: 7.875 kB / 429.3 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.1466, allocations: 7.922 kB / 429.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000643/0.1473, allocations: 67.69 kB / 429.4 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001786/0.1474, allocations: 55.84 kB / 429.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.1476, allocations: 15.98 kB / 429.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.1478, allocations: 27.86 kB / 429.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.501e-05/0.1478, allocations: 23.84 kB / 429.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.1479, allocations: 4 kB / 429.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.236e-05/0.1479, allocations: 8 kB / 429.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.302e-05/0.148, allocations: 19.92 kB / 429.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.122e-05/0.148, allocations: 27.8 kB / 429.6 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.1482, allocations: 67.67 kB / 429.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1482, allocations: 0 / 429.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1482, allocations: 4 kB / 429.7 MB, free: 1.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1483, allocations: 0 / 429.7 MB, free: 1.938 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.0006596/0.1489, allocations: 393.7 kB / 430.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.149, allocations: 8.031 kB / 430.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001856/0.1491, allocations: 20.88 kB / 430.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003102/0.1495, allocations: 200.2 kB / 430.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-06/0.1495, allocations: 384 / 430.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.1495, allocations: 12.38 kB / 430.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.1498, allocations: 134.2 kB / 430.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1498, allocations: 0 / 430.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1498, allocations: 0 / 430.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.1498, allocations: 8 kB / 430.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.837e-05/0.1499, allocations: 23.92 kB / 430.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000404/0.1503, allocations: 286.5 kB / 430.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002504/0.1506, allocations: 156.8 kB / 430.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.149e-05/0.1507, allocations: 38.67 kB / 430.9 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.1507, allocations: 0 / 430.9 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.1507, allocations: 34.56 kB / 431 MB, free: 436 kB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.173e-06/0.1507, allocations: 4 kB / 431 MB, free: 432 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003112/0.151, allocations: 93.55 kB / 431.1 MB, free: 332 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1512, allocations: 118.7 kB / 431.2 MB, free: 188 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.1513, allocations: 137.8 kB / 431.3 MB, free: 40 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.1513, allocations: 29.7 kB / 431.3 MB, free: 4 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.679e-05/0.1514, allocations: 88.14 kB / 431.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.1515, allocations: 12.14 kB / 431.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.1515, allocations: 25.7 kB / 431.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1517, allocations: 322.7 kB / 431.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.236e-05/0.1517, allocations: 15.98 kB / 431.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.553e-05/0.1518, allocations: 44.28 kB / 431.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.1519, allocations: 64.22 kB / 431.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1519, allocations: 0 / 431.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001702/0.1521, allocations: 89.5 kB / 432 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.1521, allocations: 16.11 kB / 432 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1521, allocations: 0 / 432 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.1521, allocations: 0 / 432 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.211e-05/0.1522, allocations: 8 kB / 432 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.1522, allocations: 7.938 kB / 432 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.867e-05/0.1522, allocations: 7.938 kB / 432 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.1523, allocations: 4 kB / 432 MB, free: 15.26 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.0001076/0.1524, allocations: 121.8 kB / 432.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.1e-05/0.1525, allocations: 57.64 kB / 432.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.929e-05/0.1525, allocations: 12.25 kB / 432.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1525, allocations: 4 kB / 432.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1525, allocations: 4 kB / 432.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.1525, allocations: 3.984 kB / 432.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.1527, allocations: 177.6 kB / 432.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.1527, allocations: 0 / 432.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.304e-05/0.1528, allocations: 15.92 kB / 432.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.1528, allocations: 4 kB / 432.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-06/0.1528, allocations: 0 / 432.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1528, allocations: 0 / 432.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.1528, allocations: 4 kB / 432.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002235/0.153, allocations: 189.1 kB / 432.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.936e-05/0.1531, allocations: 93.33 kB / 432.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.37e-05/0.1531, allocations: 7.984 kB / 432.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.733e-05/0.1532, allocations: 0 / 432.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/0.1532, allocations: 15.88 kB / 432.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.1532, allocations: 3.984 kB / 432.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.871e-05/0.1533, allocations: 113.5 kB / 432.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1533, allocations: 0 / 432.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.1536, allocations: 12 kB / 432.8 MB, free: 14.32 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.0001198/0.1537, allocations: 99.19 kB / 432.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001796/0.1539, allocations: 52.03 kB / 433 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1539, allocations: 4.062 kB / 433 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.345e-05/0.1539, allocations: 11.94 kB / 433 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.1543, allocations: 31.94 kB / 433 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004058/0.1547, allocations: 189 kB / 433.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.155, allocations: 0.6965 MB / 433.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.044e-05/0.1551, allocations: 11.77 kB / 433.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.3e-05/0.1551, allocations: 11.44 kB / 433.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1551, allocations: 4 kB / 433.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of Templates: time 0.003433/0.1585, allocations: 0.6465 MB / 434.6 MB, free: 12.52 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.160069843754172]