Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.001525/0.001525, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001876/0.001876, allocations: 215.4 kB / 24.48 MB, free: 3.941 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 2.308/2.308, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 177] 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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 55.92 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.3621, allocations: 53.35 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.00405/0.3661, allocations: 1.58 MB / 433.9 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.3675, allocations: 0.5142 MB / 434.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.3676, allocations: 0 / 434.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.598e-05/0.3677, allocations: 7.922 kB / 434.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002074/0.3679, allocations: 23.86 kB / 434.4 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004662/0.3684, allocations: 59.75 kB / 434.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.3685, allocations: 51.8 kB / 434.5 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.3687, allocations: 12.17 kB / 434.6 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.3689, allocations: 27.91 kB / 434.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.788e-05/0.3689, allocations: 19.86 kB / 434.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.369, allocations: 8 kB / 434.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.909e-05/0.369, allocations: 4 kB / 434.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.274e-05/0.3691, allocations: 15.94 kB / 434.6 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.387e-05/0.3691, allocations: 23.84 kB / 434.7 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.3693, allocations: 70.28 kB / 434.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.3694, allocations: 4 kB / 434.7 MB, free: 4.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3694, allocations: 0 / 434.7 MB, free: 4.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.3694, allocations: 0 / 434.7 MB, free: 4.32 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008311/0.3702, allocations: 305.9 kB / 435 MB, free: 3.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.3703, allocations: 8.031 kB / 435 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002324/0.3705, allocations: 24.88 kB / 435.1 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.3709, allocations: 138.9 kB / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-06/0.3709, allocations: 384 / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.3709, allocations: 11.94 kB / 435.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003606/0.3713, allocations: 105 kB / 435.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.3713, allocations: 0 / 435.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.3713, allocations: 4 kB / 435.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3713, allocations: 7.938 kB / 435.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.545e-05/0.3714, allocations: 15.98 kB / 435.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003828/0.3718, allocations: 213.4 kB / 435.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.3719, allocations: 45.16 kB / 435.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.213e-05/0.372, allocations: 25.77 kB / 435.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.372, allocations: 3.938 kB / 435.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.372, allocations: 30.56 kB / 435.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.233e-06/0.372, allocations: 4 kB / 435.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002958/0.3723, allocations: 69.56 kB / 435.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.375e-05/0.3724, allocations: 77.11 kB / 435.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.3726, allocations: 156.7 kB / 435.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.3726, allocations: 29.7 kB / 436 MB, free: 2.895 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.613e-05/0.3727, allocations: 88.09 kB / 436.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.3727, allocations: 0 / 436.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/0.3727, allocations: 17.72 kB / 436.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.3729, allocations: 327 kB / 436.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.016e-05/0.373, allocations: 8 kB / 436.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.002e-05/0.373, allocations: 25.64 kB / 436.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.141e-05/0.3731, allocations: 25.7 kB / 436.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3731, allocations: 0 / 436.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001418/0.3732, allocations: 61.58 kB / 436.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3733, allocations: 8.125 kB / 436.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3733, allocations: 0 / 436.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.3733, allocations: 0 / 436.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.467e-05/0.3734, allocations: 7.984 kB / 436.5 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.3734, allocations: 4 kB / 436.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.497e-05/0.3734, allocations: 0 / 436.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.3734, allocations: 3.938 kB / 436.5 MB, free: 2.293 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001122/0.3735, allocations: 125.8 kB / 436.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.499e-05/0.3736, allocations: 41.59 kB / 436.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.52e-05/0.3737, allocations: 7.812 kB / 436.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.3737, allocations: 8.031 kB / 436.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3737, allocations: 0 / 436.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3737, allocations: 3.984 kB / 436.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000176/0.3738, allocations: 117.2 kB / 436.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.3739, allocations: 4 kB / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.334e-05/0.3739, allocations: 4 kB / 436.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3739, allocations: 0 / 436.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.3739, allocations: 3.984 kB / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3739, allocations: 0 / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3739, allocations: 4 kB / 436.9 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002371/0.3742, allocations: 172.2 kB / 437 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.845e-05/0.3742, allocations: 11.94 kB / 437 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.3742, allocations: 0 / 437 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.819e-05/0.3743, allocations: 4 kB / 437 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.185e-05/0.3743, allocations: 3.984 kB / 437 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.3743, allocations: 4 kB / 437 MB, free: 1.723 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001096/0.3744, allocations: 119.1 kB / 437.2 MB, free: 1.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3744, allocations: 0 / 437.2 MB, free: 1.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002258/0.3747, allocations: 4 kB / 437.2 MB, free: 1.602 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001305/0.3748, allocations: 103.3 kB / 437.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001568/0.3749, allocations: 23.92 kB / 437.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3749, allocations: 0 / 437.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.026e-05/0.375, allocations: 11.94 kB / 437.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.3753, allocations: 18.42 kB / 437.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004245/0.3758, allocations: 167.7 kB / 437.5 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.681e-05/0.3759, allocations: 83.48 kB / 437.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.536e-05/0.3759, allocations: 4 kB / 437.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.3759, allocations: 11.42 kB / 437.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3759, allocations: 0 / 437.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of Templates: time 0.003747/0.3797, allocations: 0.6763 MB / 438.3 MB, free: 484 kB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.864874609003891]