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.001275/0.001275, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001401/0.001401, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.531/1.531, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.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.001762/0.001762, allocations: 47.92 kB / 378.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3355, allocations: 53.37 MB / 431.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003143/0.3386, allocations: 1.574 MB / 433.1 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3397, allocations: 0.522 MB / 433.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.214e-05/0.3398, allocations: 7.938 kB / 433.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.07e-05/0.3399, allocations: 3.938 kB / 433.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.34, allocations: 15.86 kB / 433.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.3403, allocations: 55.83 kB / 433.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.3404, allocations: 47.84 kB / 433.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.672e-05/0.3405, allocations: 12.17 kB / 433.8 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.3407, allocations: 31.8 kB / 433.8 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.82e-05/0.3407, allocations: 19.92 kB / 433.9 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.834e-05/0.3407, allocations: 8 kB / 433.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.154e-05/0.3408, allocations: 7.938 kB / 433.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.689e-05/0.3408, allocations: 15.97 kB / 433.9 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.003e-05/0.3409, allocations: 19.81 kB / 433.9 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.341, allocations: 69.92 kB / 434 MB, free: 4.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.341, allocations: 0 / 434 MB, free: 4.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.341, allocations: 0 / 434 MB, free: 4.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.341, allocations: 0 / 434 MB, free: 4.328 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.0005483/0.3416, allocations: 309.9 kB / 434.3 MB, free: 3.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.3416, allocations: 8.031 kB / 434.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001891/0.3418, allocations: 24.88 kB / 434.3 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.3421, allocations: 134.9 kB / 434.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.3421, allocations: 8.359 kB / 434.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.3421, allocations: 3.938 kB / 434.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.3425, allocations: 109 kB / 434.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.3425, allocations: 3.938 kB / 434.6 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.3425, allocations: 4 kB / 434.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.3425, allocations: 3.938 kB / 434.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.87e-05/0.3426, allocations: 23.92 kB / 434.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003426/0.3429, allocations: 205.4 kB / 434.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.137e-05/0.343, allocations: 49.14 kB / 434.8 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.952e-05/0.3431, allocations: 17.78 kB / 434.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.3431, allocations: 0 / 434.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.3431, allocations: 38.55 kB / 434.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.3431, allocations: 4 kB / 434.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002525/0.3434, allocations: 61.58 kB / 435 MB, free: 3.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.3434, allocations: 85.09 kB / 435 MB, free: 3.094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.3436, allocations: 148.8 kB / 435.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.3436, allocations: 25.7 kB / 435.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.3437, allocations: 96.08 kB / 435.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.254e-05/0.3437, allocations: 0 / 435.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.3437, allocations: 17.72 kB / 435.3 MB, free: 2.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.344, allocations: 315 kB / 435.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.261e-05/0.344, allocations: 15.98 kB / 435.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.145e-05/0.344, allocations: 25.64 kB / 435.7 MB, free: 2.426 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.886e-05/0.3441, allocations: 25.72 kB / 435.7 MB, free: 2.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3441, allocations: 0 / 435.7 MB, free: 2.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000123/0.3442, allocations: 65.56 kB / 435.8 MB, free: 2.324 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.3443, allocations: 8.125 kB / 435.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3443, allocations: 3.984 kB / 435.8 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.3443, allocations: 4 kB / 435.8 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.028e-05/0.3443, allocations: 4 kB / 435.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.3444, allocations: 0 / 435.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.79e-05/0.3444, allocations: 7.984 kB / 435.8 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.3444, allocations: 3.938 kB / 435.8 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.0001029/0.3445, allocations: 113.8 kB / 435.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.104e-05/0.3446, allocations: 45.58 kB / 436 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/0.3446, allocations: 11.81 kB / 436 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.3446, allocations: 4.031 kB / 436 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3446, allocations: 0 / 436 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.3446, allocations: 0 / 436 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001686/0.3448, allocations: 125.2 kB / 436.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3448, allocations: 0 / 436.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.216e-05/0.3448, allocations: 7.938 kB / 436.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3448, allocations: 0 / 436.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.679e-06/0.3448, allocations: 4 kB / 436.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3448, allocations: 0 / 436.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3448, allocations: 3.938 kB / 436.1 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001935/0.345, allocations: 168.2 kB / 436.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-05/0.3451, allocations: 15.94 kB / 436.3 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.3451, allocations: 4 kB / 436.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.375e-05/0.3452, allocations: 0 / 436.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.3452, allocations: 0 / 436.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.3452, allocations: 4 kB / 436.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.004e-05/0.3453, allocations: 116.3 kB / 436.4 MB, free: 1.617 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3453, allocations: 0 / 436.4 MB, free: 1.617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002385/0.3455, allocations: 8 kB / 436.4 MB, free: 1.609 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.0001064/0.3456, allocations: 95.28 kB / 436.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.3458, allocations: 23.98 kB / 436.5 MB, free: 1.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3458, allocations: 0 / 436.5 MB, free: 1.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.842e-05/0.3458, allocations: 11.92 kB / 436.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.3461, allocations: 22.59 kB / 436.6 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003588/0.3465, allocations: 163.7 kB / 436.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.652e-05/0.3466, allocations: 83.55 kB / 436.8 MB, free: 1.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.148e-05/0.3466, allocations: 0 / 436.8 MB, free: 1.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.3466, allocations: 11.44 kB / 436.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3466, allocations: 0 / 436.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of Templates: time 0.003525/0.3502, allocations: 0.6664 MB / 437.5 MB, free: 0.4961 MB / 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/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: 4.74014899879694]