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.001799/0.001799, allocations: 115.5 kB / 18.41 MB, free: 4.672 MB / 14.72 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.00217/0.002171, allocations: 192.3 kB / 21.35 MB, free: 1.738 MB / 14.72 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 1.54/1.54, allocations: 222.9 MB / 247 MB, free: 4.09 MB / 190.1 MB " [Timeout remaining time 178] 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 0.00166/0.00166, allocations: 51.92 kB / 358.7 MB, free: 8.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1222, allocations: 49.43 MB / 408.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003486/0.1257, allocations: 1.585 MB / 409.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1269, allocations: 0.4947 MB / 410.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.127, allocations: 4 kB / 410.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.951e-05/0.1271, allocations: 7.875 kB / 410.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.1272, allocations: 7.938 kB / 410.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003578/0.1276, allocations: 55.81 kB / 410.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.1277, allocations: 47.8 kB / 410.3 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.1279, allocations: 20.16 kB / 410.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.122e-05/0.128, allocations: 23.92 kB / 410.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.331e-05/0.128, allocations: 19.86 kB / 410.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.812e-05/0.1281, allocations: 4 kB / 410.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.535e-05/0.1281, allocations: 8 kB / 410.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.783e-05/0.1282, allocations: 15.92 kB / 410.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.718e-05/0.1282, allocations: 31.8 kB / 410.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.1284, allocations: 59.67 kB / 410.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1284, allocations: 4 kB / 410.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.928e-06/0.1284, allocations: 0 / 410.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.1284, allocations: 3.938 kB / 410.5 MB, free: 4.355 MB / 334.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.000605/0.1291, allocations: 383 kB / 410.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.1291, allocations: 8.031 kB / 410.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.218e-05/0.1292, allocations: 12.83 kB / 410.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.1295, allocations: 201.4 kB / 411.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.1295, allocations: 4.312 kB / 411.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.103e-05/0.1295, allocations: 8.375 kB / 411.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.1299, allocations: 137.9 kB / 411.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1299, allocations: 3.938 kB / 411.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.1299, allocations: 4 kB / 411.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.1299, allocations: 4 kB / 411.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.525e-05/0.13, allocations: 23.97 kB / 411.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.1305, allocations: 286.5 kB / 411.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.1308, allocations: 152.8 kB / 411.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.338e-05/0.1309, allocations: 42.69 kB / 411.7 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.1309, allocations: 7.984 kB / 411.7 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.131, allocations: 30.56 kB / 411.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.131, allocations: 0 / 411.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003633/0.1313, allocations: 101.5 kB / 411.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.655e-05/0.1314, allocations: 106.8 kB / 412 MB, free: 2.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.1316, allocations: 148.3 kB / 412.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.1317, allocations: 25.7 kB / 412.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.162e-05/0.1317, allocations: 84.14 kB / 412.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.948e-05/0.1318, allocations: 11.95 kB / 412.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.524e-05/0.1318, allocations: 25.66 kB / 412.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.132, allocations: 322.8 kB / 412.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.394e-05/0.132, allocations: 15.92 kB / 412.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.253e-05/0.1321, allocations: 48.28 kB / 412.6 MB, free: 1.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.1323, allocations: 60.22 kB / 412.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1323, allocations: 4 kB / 412.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001671/0.1324, allocations: 81.55 kB / 412.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.1325, allocations: 8 kB / 412.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1325, allocations: 3.984 kB / 412.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.1325, allocations: 0 / 412.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.352e-05/0.1326, allocations: 11.94 kB / 412.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1326, allocations: 8 kB / 412.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.634e-05/0.1327, allocations: 19.88 kB / 412.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.1327, allocations: 4.125 kB / 412.8 MB, free: 1.676 MB / 334.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.0001416/0.1328, allocations: 125.7 kB / 413 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.124e-05/0.1329, allocations: 53.64 kB / 413 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.003e-05/0.133, allocations: 8.25 kB / 413 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.133, allocations: 4 kB / 413 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.133, allocations: 0 / 413 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.133, allocations: 4.219 kB / 413 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002419/0.1333, allocations: 185.5 kB / 413.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1333, allocations: 0 / 413.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.317e-05/0.1333, allocations: 15.98 kB / 413.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.1334, allocations: 7.984 kB / 413.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.1334, allocations: 0 / 413.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.1334, allocations: 0 / 413.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.1334, allocations: 4 kB / 413.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002411/0.1336, allocations: 185.1 kB / 413.4 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.143e-05/0.1337, allocations: 97.05 kB / 413.5 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.1338, allocations: 4 kB / 413.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.512e-05/0.1338, allocations: 7.984 kB / 413.5 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.1339, allocations: 4 kB / 413.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.1339, allocations: 0 / 413.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.388e-05/0.134, allocations: 113.7 kB / 413.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.134, allocations: 0 / 413.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002321/0.1343, allocations: 4 kB / 413.6 MB, free: 0.7578 MB / 334.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.0001469/0.1344, allocations: 111.2 kB / 413.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001902/0.1346, allocations: 47.91 kB / 413.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1346, allocations: 3.938 kB / 413.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.568e-05/0.1347, allocations: 11.94 kB / 413.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.135, allocations: 24.02 kB / 413.8 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000492/0.1355, allocations: 227 kB / 414.1 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.136, allocations: 0.7 MB / 414.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.83e-05/0.136, allocations: 7.438 kB / 414.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.136, allocations: 4 kB / 414.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Templates: time 0.003212/0.1392, allocations: 0.8625 MB / 415.6 MB, free: 14.7 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.078697583987378]