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.001389/0.001389, allocations: 113.1 kB / 21.19 MB, free: 0.7773 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.001724/0.001724, allocations: 210.1 kB / 24.49 MB, free: 4.164 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.562/1.562, allocations: 230.5 MB / 258.1 MB, free: 8.027 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.002075/0.002075, allocations: 59.91 kB / 379 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2711, allocations: 53.41 MB / 432.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003071/0.2742, allocations: 1.629 MB / 434.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.2753, allocations: 0.5687 MB / 434.6 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.492e-05/0.2754, allocations: 3.938 kB / 434.6 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.034e-05/0.2755, allocations: 7.922 kB / 434.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.2756, allocations: 19.81 kB / 434.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003391/0.2759, allocations: 59.81 kB / 434.7 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001254/0.2761, allocations: 51.83 kB / 434.8 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.2762, allocations: 8 kB / 434.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.2763, allocations: 31.86 kB / 434.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.742e-05/0.2764, allocations: 27.84 kB / 434.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.639e-05/0.2764, allocations: 4 kB / 434.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.525e-05/0.2765, allocations: 4 kB / 434.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.654e-05/0.2765, allocations: 19.92 kB / 434.9 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.026e-05/0.2766, allocations: 35.8 kB / 434.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.2767, allocations: 63.33 kB / 435 MB, free: 4.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.2767, allocations: 0 / 435 MB, free: 4.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2767, allocations: 0 / 435 MB, free: 4.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.2767, allocations: 0 / 435 MB, free: 4.25 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.0005128/0.2773, allocations: 315.5 kB / 435.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.2773, allocations: 8.031 kB / 435.3 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.2775, allocations: 20.88 kB / 435.3 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.2778, allocations: 145.1 kB / 435.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.2778, allocations: 8.312 kB / 435.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.2778, allocations: 4.375 kB / 435.5 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.2781, allocations: 142.1 kB / 435.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2781, allocations: 0 / 435.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.2781, allocations: 0 / 435.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2781, allocations: 0 / 435.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.087e-05/0.2782, allocations: 27.92 kB / 435.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004048/0.2786, allocations: 261.7 kB / 435.9 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.2789, allocations: 75.72 kB / 436 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.108e-05/0.2789, allocations: 34.69 kB / 436 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.279, allocations: 3.984 kB / 436 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.279, allocations: 46.48 kB / 436 MB, free: 3.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.279, allocations: 0 / 436 MB, free: 3.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002896/0.2793, allocations: 89.56 kB / 436.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/0.2794, allocations: 110.8 kB / 436.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.2795, allocations: 138.1 kB / 436.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.2795, allocations: 33.7 kB / 436.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.586e-05/0.2796, allocations: 88.14 kB / 436.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.2796, allocations: 11.94 kB / 436.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.2797, allocations: 17.72 kB / 436.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2798, allocations: 326.8 kB / 436.8 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.382e-05/0.2799, allocations: 12 kB / 436.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.311e-05/0.2799, allocations: 52.2 kB / 436.9 MB, free: 2.074 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.2801, allocations: 68.14 kB / 437 MB, free: 1.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2801, allocations: 0 / 437 MB, free: 1.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001791/0.2802, allocations: 89.56 kB / 437.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.2803, allocations: 8 kB / 437.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.2803, allocations: 0 / 437.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.2803, allocations: 0 / 437.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.919e-05/0.2804, allocations: 19.86 kB / 437.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.2804, allocations: 4 kB / 437.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.284e-05/0.2804, allocations: 11.89 kB / 437.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.2804, allocations: 0 / 437.1 MB, free: 1.855 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.0001058/0.2805, allocations: 125.9 kB / 437.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.541e-05/0.2806, allocations: 61.58 kB / 437.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.85e-05/0.2807, allocations: 12.33 kB / 437.3 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.2807, allocations: 4 kB / 437.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.2807, allocations: 0 / 437.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2807, allocations: 0 / 437.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.2809, allocations: 144.7 kB / 437.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.2809, allocations: 7.984 kB / 437.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.976e-05/0.281, allocations: 8 kB / 437.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.281, allocations: 0 / 437.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.281, allocations: 4 kB / 437.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.281, allocations: 0 / 437.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.281, allocations: 4 kB / 437.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002257/0.2812, allocations: 193.1 kB / 437.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.787e-05/0.2812, allocations: 15.95 kB / 437.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.2813, allocations: 12.05 kB / 437.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.505e-05/0.2813, allocations: 4.281 kB / 437.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.749e-05/0.2814, allocations: 0 / 437.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.2814, allocations: 4 kB / 437.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001115/0.2815, allocations: 114 kB / 437.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2815, allocations: 0 / 437.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.2817, allocations: 8 kB / 437.8 MB, free: 1.062 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.0001249/0.2819, allocations: 99.23 kB / 437.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001789/0.282, allocations: 55.84 kB / 438 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.282, allocations: 0 / 438 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.899e-05/0.2821, allocations: 19.92 kB / 438 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.2824, allocations: 31.95 kB / 438 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004467/0.2829, allocations: 231.2 kB / 438.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.2832, allocations: 0.6924 MB / 438.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.2833, allocations: 11.42 kB / 438.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2833, allocations: 4 kB / 438.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of Templates: time 0.002941/0.2862, allocations: 0.8782 MB / 439.8 MB, free: 14.98 MB / 350.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/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_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: 7.231199486879632]