Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.0006954/0.0006954, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008913/0.001587, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009552/0.0009552, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00132/0.002275, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.9052/0.9052, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1303/1.036, allocations: 52.48 MB / 238.5 MB, free: 7.621 MB / 234.7 MB " [Timeout remaining time 179] 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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.556e-06/9.819e-06, allocations: 2.312 kB / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001656/0.001666, allocations: 1.643 MB / 241.4 MB, free: 4.727 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004622/0.002128, allocations: 498.4 kB / 241.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.614e-05/0.002184, allocations: 0 / 241.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.096e-05/0.002215, allocations: 9.312 kB / 241.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.623e-05/0.002272, allocations: 11.92 kB / 241.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001405/0.002412, allocations: 51.7 kB / 241.9 MB, free: 4.164 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.166e-05/0.002494, allocations: 48.61 kB / 242 MB, free: 4.117 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.602e-05/0.00256, allocations: 16.16 kB / 242 MB, free: 4.102 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.674e-05/0.002637, allocations: 36.95 kB / 242 MB, free: 4.066 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.218e-05/0.002679, allocations: 7.984 kB / 242 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.002698, allocations: 4 kB / 242 MB, free: 4.055 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.014e-05/0.002708, allocations: 7.125 kB / 242.1 MB, free: 4.051 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.45e-05/0.002743, allocations: 19.92 kB / 242.1 MB, free: 4.031 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 1.787e-05/0.002761, allocations: 11.94 kB / 242.1 MB, free: 4.02 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 8.011e-05/0.002841, allocations: 35.83 kB / 242.1 MB, free: 3.984 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.358e-06/0.00285, allocations: 0 / 242.1 MB, free: 3.984 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.51e-07/0.002851, allocations: 0 / 242.1 MB, free: 3.984 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.00286, allocations: 0 / 242.1 MB, free: 3.984 MB / 234.7 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.000311/0.003171, allocations: 296.2 kB / 242.4 MB, free: 3.672 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.507e-05/0.003196, allocations: 13.34 kB / 242.4 MB, free: 3.66 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.003222, allocations: 8.922 kB / 242.4 MB, free: 3.652 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.003351, allocations: 138.7 kB / 242.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.234e-06/0.003358, allocations: 4.375 kB / 242.6 MB, free: 3.488 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.003368, allocations: 4.375 kB / 242.6 MB, free: 3.484 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.003508, allocations: 109.3 kB / 242.7 MB, free: 3.359 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.003514, allocations: 192 / 242.7 MB, free: 3.359 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.003521, allocations: 4.125 kB / 242.7 MB, free: 3.355 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.003526, allocations: 0 / 242.7 MB, free: 3.355 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.467e-05/0.00354, allocations: 11.94 kB / 242.7 MB, free: 3.344 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001349/0.003675, allocations: 154.1 kB / 242.8 MB, free: 3.176 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.534e-05/0.003711, allocations: 41.14 kB / 242.9 MB, free: 3.117 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.203e-05/0.003723, allocations: 10.62 kB / 242.9 MB, free: 3.102 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.003735, allocations: 4.062 kB / 242.9 MB, free: 3.098 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.003753, allocations: 40.33 kB / 242.9 MB, free: 3.051 MB / 234.7 MB Notification: Performance of pre-optimization done (n=2): time 6.51e-07/0.003754, allocations: 0 / 242.9 MB, free: 3.051 MB / 234.7 MB Notification: Performance of matching and sorting (n=2): time 9.019e-05/0.003844, allocations: 45.58 kB / 243 MB, free: 3 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.003879, allocations: 81.75 kB / 243.1 MB, free: 2.902 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.704e-05/0.003946, allocations: 134.6 kB / 243.2 MB, free: 2.758 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.116e-06/0.003954, allocations: 26.39 kB / 243.2 MB, free: 2.727 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.905e-05/0.003983, allocations: 88.12 kB / 243.3 MB, free: 2.637 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.003999, allocations: 5.969 kB / 243.3 MB, free: 2.633 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.526e-05/0.004024, allocations: 25.59 kB / 243.3 MB, free: 2.602 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.145e-05/0.004085, allocations: 314.8 kB / 243.6 MB, free: 2.285 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.731e-06/0.004091, allocations: 0 / 243.6 MB, free: 2.285 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.004096, allocations: 0 / 243.6 MB, free: 2.285 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.459e-05/0.00411, allocations: 10.33 kB / 243.7 MB, free: 2.273 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.004112, allocations: 0 / 243.7 MB, free: 2.273 MB / 234.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.909e-05/0.004141, allocations: 33.69 kB / 243.7 MB, free: 2.234 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.004151, allocations: 8.625 kB / 243.7 MB, free: 2.227 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.004156, allocations: 4.531 kB / 243.7 MB, free: 2.223 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.977e-06/0.004165, allocations: 0 / 243.7 MB, free: 2.223 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.299e-05/0.004208, allocations: 0.5625 kB / 243.7 MB, free: 2.223 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.004212, allocations: 13.58 kB / 243.7 MB, free: 2.211 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.284e-05/0.004225, allocations: 0 / 243.7 MB, free: 2.211 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-06/0.004229, allocations: 0 / 243.7 MB, free: 2.211 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 4.144e-05/0.00427, allocations: 112.7 kB / 243.8 MB, free: 2.09 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.476e-05/0.004295, allocations: 38.88 kB / 243.9 MB, free: 2.047 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.319e-05/0.004318, allocations: 15.75 kB / 243.9 MB, free: 2.027 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.00432, allocations: 0 / 243.9 MB, free: 2.027 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.004321, allocations: 0.9688 kB / 243.9 MB, free: 2.027 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.004323, allocations: 0 / 243.9 MB, free: 2.027 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.227e-05/0.004395, allocations: 74.88 kB / 244 MB, free: 1.938 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.004396, allocations: 0 / 244 MB, free: 1.938 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.577e-05/0.004411, allocations: 4 kB / 244 MB, free: 1.934 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.011e-05/0.004431, allocations: 20.42 kB / 244 MB, free: 1.914 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.22e-07/0.004432, allocations: 0.8438 kB / 244 MB, free: 1.914 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-06/0.004436, allocations: 0 / 244 MB, free: 1.914 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.004437, allocations: 3.938 kB / 244 MB, free: 1.91 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.004439, allocations: 9.562 kB / 244 MB, free: 1.902 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.382e-05/0.004493, allocations: 136.4 kB / 244.1 MB, free: 1.75 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.875e-06/0.004501, allocations: 0 / 244.1 MB, free: 1.75 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.961e-05/0.004531, allocations: 4.406 kB / 244.1 MB, free: 1.746 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.901e-05/0.00455, allocations: 11.92 kB / 244.1 MB, free: 1.734 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.004552, allocations: 7.938 kB / 244.1 MB, free: 1.727 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.119e-05/0.004573, allocations: 32.09 kB / 244.2 MB, free: 1.695 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004573, allocations: 0 / 244.2 MB, free: 1.695 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001103/0.004684, allocations: 8 kB / 244.2 MB, free: 1.688 MB / 234.7 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 5.245e-05/0.004736, allocations: 80.36 kB / 244.3 MB, free: 1.602 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 4.338e-05/0.00478, allocations: 12.8 kB / 244.3 MB, free: 1.586 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.004784, allocations: 3.984 kB / 244.3 MB, free: 1.582 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 1.404e-05/0.004798, allocations: 12.95 kB / 244.3 MB, free: 1.566 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.005006, allocations: 127.1 kB / 244.4 MB, free: 1.414 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006127/0.005619, allocations: 171.5 kB / 244.6 MB, free: 1.219 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.889e-05/0.005648, allocations: 59.34 kB / 244.6 MB, free: 1.141 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 1.679e-05/0.005664, allocations: 4 kB / 244.6 MB, free: 1.137 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.748e-05/0.005712, allocations: 55.36 kB / 244.7 MB, free: 1.082 MB / 234.7 MB Notification: Performance of SimCode: time 3.7e-07/0.005712, allocations: 224 / 244.7 MB, free: 1.082 MB / 234.7 MB Notification: Performance of Templates: time 0.001795/0.007507, allocations: 0.6935 MB / 245.4 MB, free: 420 kB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.247441795654595]