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.001637/0.001637, allocations: 112.5 kB / 18.45 MB, free: 4.605 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.001887/0.001887, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.602/1.602, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.001534/0.001534, allocations: 47.92 kB / 374.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.142, allocations: 53.33 MB / 427.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003535/0.1455, allocations: 1.603 MB / 429.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1468, allocations: 0.5649 MB / 429.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.188e-05/0.1469, allocations: 0 / 429.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.765e-05/0.1469, allocations: 7.875 kB / 429.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.1471, allocations: 11.94 kB / 429.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003773/0.1474, allocations: 63.8 kB / 429.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.1476, allocations: 55.72 kB / 429.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.1477, allocations: 11.98 kB / 429.8 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.1478, allocations: 39.84 kB / 429.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.828e-05/0.1479, allocations: 23.86 kB / 429.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.1479, allocations: 4 kB / 429.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.256e-05/0.148, allocations: 4 kB / 429.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.999e-05/0.148, allocations: 19.92 kB / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.63e-05/0.1481, allocations: 23.81 kB / 429.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.1483, allocations: 67.66 kB / 430 MB, free: 1.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1483, allocations: 4 kB / 430 MB, free: 1.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1483, allocations: 0 / 430 MB, free: 1.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.1483, allocations: 0 / 430 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.0006911/0.149, allocations: 395 kB / 430.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.149, allocations: 8.031 kB / 430.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.1492, allocations: 20.88 kB / 430.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000327/0.1495, allocations: 202.7 kB / 430.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.1496, allocations: 4.359 kB / 430.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.1496, allocations: 4.375 kB / 430.6 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003855/0.15, allocations: 146.1 kB / 430.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.15, allocations: 0 / 430.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.15, allocations: 0 / 430.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.15, allocations: 0 / 430.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.633e-05/0.1501, allocations: 27.92 kB / 430.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004382/0.1505, allocations: 286.6 kB / 431.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.1508, allocations: 160.8 kB / 431.2 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.566e-05/0.1509, allocations: 34.64 kB / 431.3 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.507e-05/0.151, allocations: 11.97 kB / 431.3 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.151, allocations: 34.56 kB / 431.3 MB, free: 220 kB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.151, allocations: 0 / 431.3 MB, free: 220 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000326/0.1513, allocations: 93.56 kB / 431.4 MB, free: 120 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.1514, allocations: 114.7 kB / 431.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.1516, allocations: 137.8 kB / 431.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1516, allocations: 29.64 kB / 431.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.017e-05/0.1517, allocations: 92.12 kB / 431.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.1517, allocations: 11.89 kB / 431.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.1517, allocations: 21.72 kB / 431.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1519, allocations: 323 kB / 432.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.634e-05/0.152, allocations: 15.98 kB / 432.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.837e-05/0.1521, allocations: 44.28 kB / 432.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.1522, allocations: 68.22 kB / 432.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1522, allocations: 0 / 432.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001788/0.1524, allocations: 89.44 kB / 432.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.1524, allocations: 8 kB / 432.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1524, allocations: 0 / 432.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.1524, allocations: 128 / 432.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.861e-05/0.1525, allocations: 15.98 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.1525, allocations: 4 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.127e-05/0.1526, allocations: 3.953 kB / 432.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.1526, allocations: 11.94 kB / 432.4 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.0001114/0.1527, allocations: 126 kB / 432.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.635e-05/0.1528, allocations: 49.64 kB / 432.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.957e-05/0.1528, allocations: 16.23 kB / 432.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1528, allocations: 8 kB / 432.6 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1528, allocations: 0 / 432.6 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1528, allocations: 4 kB / 432.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002429/0.1531, allocations: 181.6 kB / 432.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1531, allocations: 0 / 432.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.778e-05/0.1531, allocations: 11.94 kB / 432.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.1532, allocations: 4 kB / 432.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.1532, allocations: 3.984 kB / 432.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1532, allocations: 0 / 432.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1532, allocations: 4 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.1534, allocations: 185.1 kB / 432.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.339e-05/0.1535, allocations: 93.05 kB / 433 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.1535, allocations: 4 kB / 433 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.243e-05/0.1536, allocations: 4 kB / 433 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.006e-05/0.1536, allocations: 11.92 kB / 433.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.1536, allocations: 0 / 433.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.1537, allocations: 117.4 kB / 433.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1537, allocations: 0 / 433.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000238/0.154, allocations: 8 kB / 433.2 MB, free: 14.12 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.0001541/0.1541, allocations: 107.2 kB / 433.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002038/0.1543, allocations: 47.86 kB / 433.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1543, allocations: 0 / 433.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.79e-05/0.1544, allocations: 12.3 kB / 433.3 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.0003839/0.1548, allocations: 42.12 kB / 433.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004647/0.1552, allocations: 210.7 kB / 433.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.1556, allocations: 0.6963 MB / 434.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.1557, allocations: 11.44 kB / 434.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1557, allocations: 0 / 434.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of Templates: time 0.003012/0.1587, allocations: 0.8896 MB / 435.2 MB, free: 12.04 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/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: 7.738422626018291]