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.001011/0.001011, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001122/0.001122, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 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.9524/0.9524, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.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.433e-06/1.433e-06, allocations: 0 / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.921e-05/2.064e-05, allocations: 6.25 kB / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002333/0.002353, allocations: 1.596 MB / 269.6 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007264/0.00308, allocations: 494.5 kB / 270.1 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.295e-05/0.003153, allocations: 0 / 270.1 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.113e-05/0.003204, allocations: 11.88 kB / 270.1 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.006347, allocations: 7.922 kB / 270.1 MB, free: 4.332 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.006623, allocations: 55.77 kB / 270.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.006725, allocations: 47.78 kB / 270.2 MB, free: 4.23 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.006935, allocations: 12.17 kB / 270.2 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.4e-05/0.007019, allocations: 31.86 kB / 270.2 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.072e-05/0.007069, allocations: 19.91 kB / 270.2 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.007091, allocations: 0 / 270.2 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.186e-05/0.007102, allocations: 4 kB / 270.2 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.304e-05/0.007145, allocations: 11.98 kB / 270.3 MB, free: 4.152 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.682e-05/0.007172, allocations: 15.94 kB / 270.3 MB, free: 4.137 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.007285, allocations: 39.83 kB / 270.3 MB, free: 4.098 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.007287, allocations: 4 kB / 270.3 MB, free: 4.094 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.007288, allocations: 0 / 270.3 MB, free: 4.094 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.007292, allocations: 0 / 270.3 MB, free: 4.094 MB / 250.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.0003829/0.007675, allocations: 408.2 kB / 270.7 MB, free: 3.66 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.007707, allocations: 8.922 kB / 270.7 MB, free: 3.652 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.172e-05/0.007749, allocations: 16.84 kB / 270.7 MB, free: 3.637 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.00791, allocations: 140.4 kB / 270.9 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.00792, allocations: 4.375 kB / 270.9 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.00793, allocations: 4.375 kB / 270.9 MB, free: 3.465 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/0.008156, allocations: 121.6 kB / 271 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.008163, allocations: 192 / 271 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.008172, allocations: 8.125 kB / 271 MB, free: 3.312 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.00818, allocations: 0 / 271 MB, free: 3.312 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.039e-05/0.0082, allocations: 4 kB / 271 MB, free: 3.309 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002516/0.008452, allocations: 267.5 kB / 271.3 MB, free: 3.008 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.794e-05/0.008509, allocations: 58.17 kB / 271.3 MB, free: 2.926 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.675e-05/0.008536, allocations: 31.31 kB / 271.4 MB, free: 2.887 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.00855, allocations: 64 / 271.4 MB, free: 2.887 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.008571, allocations: 41.33 kB / 271.4 MB, free: 2.836 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.008571, allocations: 0 / 271.4 MB, free: 2.836 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001452/0.008716, allocations: 53.58 kB / 271.5 MB, free: 2.777 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.008754, allocations: 81.05 kB / 271.5 MB, free: 2.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.008858, allocations: 193.9 kB / 271.7 MB, free: 2.473 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.008868, allocations: 25.7 kB / 271.8 MB, free: 2.441 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.892e-05/0.008916, allocations: 142.8 kB / 271.9 MB, free: 2.297 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.302e-05/0.00893, allocations: 4.203 kB / 271.9 MB, free: 2.293 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.00896, allocations: 27.38 kB / 271.9 MB, free: 2.258 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.009071, allocations: 492.1 kB / 272.4 MB, free: 1.766 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.012e-05/0.009082, allocations: 0 / 272.4 MB, free: 1.766 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.316e-06/0.00909, allocations: 4 kB / 272.4 MB, free: 1.762 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.474e-05/0.009115, allocations: 15.61 kB / 272.4 MB, free: 1.742 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.009117, allocations: 0 / 272.4 MB, free: 1.742 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.003078/0.01219, allocations: 45.59 kB / 272.5 MB, free: 1.691 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.01221, allocations: 4 kB / 272.5 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.01222, allocations: 0 / 272.5 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.01223, allocations: 8.094 kB / 272.5 MB, free: 1.68 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.517e-05/0.01229, allocations: 4 kB / 272.5 MB, free: 1.676 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.0123, allocations: 3.984 kB / 272.5 MB, free: 1.672 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.088e-05/0.01232, allocations: 4 kB / 272.5 MB, free: 1.668 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.01233, allocations: 0 / 272.5 MB, free: 1.668 MB / 250.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 6.341e-05/0.01239, allocations: 152.6 kB / 272.6 MB, free: 1.508 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.224e-05/0.01244, allocations: 45.53 kB / 272.7 MB, free: 1.457 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.731e-05/0.01247, allocations: 15.8 kB / 272.7 MB, free: 1.441 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.01247, allocations: 0 / 272.7 MB, free: 1.441 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.01247, allocations: 4.031 kB / 272.7 MB, free: 1.438 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.01248, allocations: 0 / 272.7 MB, free: 1.438 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.0126, allocations: 128.6 kB / 272.8 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.0126, allocations: 0 / 272.8 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.351e-05/0.01262, allocations: 7.984 kB / 272.8 MB, free: 1.27 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.01263, allocations: 3.984 kB / 272.8 MB, free: 1.266 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.01264, allocations: 3.938 kB / 272.8 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.01264, allocations: 0 / 272.8 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.01264, allocations: 4 kB / 272.8 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001028/0.01274, allocations: 203.5 kB / 273 MB, free: 1.035 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.541e-05/0.01277, allocations: 11.98 kB / 273.1 MB, free: 1.023 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.01278, allocations: 7.938 kB / 273.1 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.813e-05/0.01283, allocations: 3.984 kB / 273.1 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.62e-05/0.01285, allocations: 7.938 kB / 273.1 MB, free: 1.004 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.01286, allocations: 4 kB / 273.1 MB, free: 1 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.731e-05/0.01292, allocations: 142.3 kB / 273.2 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01292, allocations: 0 / 273.2 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002123/0.01313, allocations: 4 kB / 273.2 MB, free: 0.8594 MB / 250.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 6.693e-05/0.0132, allocations: 99.23 kB / 273.3 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.215e-05/0.01327, allocations: 19.69 kB / 273.3 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.01327, allocations: 3.938 kB / 273.3 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.37e-05/0.01328, allocations: 11.69 kB / 273.4 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.01358, allocations: 16.3 kB / 273.4 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004316/0.01401, allocations: 169.3 kB / 273.5 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.01423, allocations: 59.34 kB / 273.6 MB, free: 428 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.468e-05/0.01425, allocations: 8.219 kB / 273.6 MB, free: 420 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.524e-05/0.01428, allocations: 8.5 kB / 273.6 MB, free: 408 kB / 250.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01428, allocations: 0 / 273.6 MB, free: 408 kB / 250.7 MB Notification: Performance of Templates: time 0.005544/0.01982, allocations: 0.6754 MB / 274.3 MB, free: 15.74 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.660304557066411]