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.0007945/0.0007945, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001145/0.00194, allocations: 449.7 kB / 10.37 MB, free: 332 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.0006418/0.0006418, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009575/0.001599, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.8987/0.8987, allocations: 173.3 MB / 185.8 MB, free: 9.004 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08654/0.9852, allocations: 52.5 MB / 238.3 MB, free: 4.445 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.744e-06/1.744e-06, allocations: 0 / 239.5 MB, free: 3.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.007e-05/1.181e-05, allocations: 2.312 kB / 239.5 MB, free: 3.211 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002039/0.002051, allocations: 1.651 MB / 241.2 MB, free: 1.551 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004822/0.002533, allocations: 0.4961 MB / 241.7 MB, free: 1.051 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.899e-05/0.002602, allocations: 4 kB / 241.7 MB, free: 1.047 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.689e-05/0.002639, allocations: 3.938 kB / 241.7 MB, free: 1.043 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.39e-05/0.002703, allocations: 7.875 kB / 241.7 MB, free: 1.035 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.00286, allocations: 55.75 kB / 241.7 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.251e-05/0.002943, allocations: 47.78 kB / 241.8 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.611e-05/0.003009, allocations: 12.19 kB / 241.8 MB, free: 0.9219 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.672e-05/0.003086, allocations: 43.77 kB / 241.8 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.174e-05/0.003128, allocations: 15.98 kB / 241.9 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.003143, allocations: 0 / 241.9 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.616e-06/0.003152, allocations: 7.938 kB / 241.9 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.102e-05/0.003183, allocations: 8 kB / 241.9 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.002e-05/0.003203, allocations: 11.94 kB / 241.9 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 8.022e-05/0.003283, allocations: 39.78 kB / 241.9 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.128e-05/0.003294, allocations: 4 kB / 241.9 MB, free: 0.793 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.003296, allocations: 3.984 kB / 241.9 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.003308, allocations: 0 / 241.9 MB, free: 0.7891 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.0003201/0.003628, allocations: 284.3 kB / 242.2 MB, free: 500 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.735e-05/0.003655, allocations: 8.031 kB / 242.2 MB, free: 492 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.349e-05/0.003679, allocations: 4.938 kB / 242.2 MB, free: 488 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.003813, allocations: 145.5 kB / 242.4 MB, free: 316 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.164e-06/0.00382, allocations: 4.375 kB / 242.4 MB, free: 312 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.673e-06/0.003827, allocations: 384 / 242.4 MB, free: 312 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.003984, allocations: 122.3 kB / 242.5 MB, free: 168 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.00399, allocations: 192 / 242.5 MB, free: 168 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-06/0.003996, allocations: 4.125 kB / 242.5 MB, free: 164 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.004, allocations: 0 / 242.5 MB, free: 164 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.555e-05/0.004016, allocations: 4 kB / 242.5 MB, free: 160 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001679/0.004184, allocations: 153.1 kB / 242.6 MB, free: 15.99 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.22e-05/0.004226, allocations: 37.19 kB / 242.7 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.517e-05/0.004241, allocations: 21.78 kB / 242.7 MB, free: 15.91 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.004257, allocations: 3.938 kB / 242.7 MB, free: 15.9 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.772e-05/0.004275, allocations: 30.56 kB / 242.7 MB, free: 15.86 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.004276, allocations: 0 / 242.7 MB, free: 15.86 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 9.682e-05/0.004373, allocations: 49.56 kB / 242.8 MB, free: 15.81 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.00441, allocations: 77.11 kB / 242.9 MB, free: 15.71 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.332e-05/0.004484, allocations: 145.6 kB / 243 MB, free: 15.56 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.266e-06/0.004492, allocations: 25.7 kB / 243 MB, free: 15.53 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/0.004522, allocations: 84.12 kB / 243.1 MB, free: 15.45 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.268e-05/0.004535, allocations: 8.25 kB / 243.1 MB, free: 15.44 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.136e-05/0.004557, allocations: 13.67 kB / 243.1 MB, free: 15.42 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.903e-05/0.004626, allocations: 318.8 kB / 243.4 MB, free: 15.1 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.965e-06/0.004634, allocations: 3.984 kB / 243.4 MB, free: 15.09 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.789e-06/0.004638, allocations: 0 / 243.4 MB, free: 15.09 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.253e-05/0.004661, allocations: 12.8 kB / 243.5 MB, free: 15.08 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.004663, allocations: 0 / 243.5 MB, free: 15.08 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.332e-05/0.004696, allocations: 29.7 kB / 243.5 MB, free: 15.04 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.004709, allocations: 11.98 kB / 243.5 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.004713, allocations: 8.031 kB / 243.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.004722, allocations: 0 / 243.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.738e-05/0.004779, allocations: 8 kB / 243.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.444e-06/0.004781, allocations: 0 / 243.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.241e-05/0.004794, allocations: 0 / 243.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.004799, allocations: 0 / 243.5 MB, free: 15.02 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 4.547e-05/0.004845, allocations: 112.7 kB / 243.6 MB, free: 14.89 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.655e-05/0.004871, allocations: 37.62 kB / 243.7 MB, free: 14.85 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.392e-05/0.004895, allocations: 15.7 kB / 243.7 MB, free: 14.83 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.004897, allocations: 4 kB / 243.7 MB, free: 14.83 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.004899, allocations: 8.016 kB / 243.7 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.004902, allocations: 0 / 243.7 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.25e-05/0.004974, allocations: 73.89 kB / 243.8 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.004976, allocations: 0 / 243.8 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.867e-05/0.004994, allocations: 11.98 kB / 243.8 MB, free: 14.72 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.226e-05/0.005017, allocations: 11.95 kB / 243.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.71e-07/0.005017, allocations: 0 / 243.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-06/0.005022, allocations: 3.984 kB / 243.8 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.005023, allocations: 11.88 kB / 243.8 MB, free: 14.69 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.005024, allocations: 0 / 243.8 MB, free: 14.69 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.418e-05/0.005088, allocations: 144.3 kB / 243.9 MB, free: 14.53 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.107e-06/0.005097, allocations: 0 / 243.9 MB, free: 14.53 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.892e-05/0.005126, allocations: 4 kB / 243.9 MB, free: 14.53 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.117e-05/0.005147, allocations: 7.938 kB / 244 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.005149, allocations: 0 / 244 MB, free: 14.52 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.02e-05/0.005169, allocations: 24.84 kB / 244 MB, free: 14.49 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005169, allocations: 0 / 244 MB, free: 14.49 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001065/0.005276, allocations: 4 kB / 244 MB, free: 14.49 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 5.746e-05/0.005333, allocations: 84.34 kB / 244.1 MB, free: 14.4 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.667e-05/0.00538, allocations: 16.88 kB / 244.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.207e-06/0.005383, allocations: 0 / 244.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.083e-05/0.005394, allocations: 12.8 kB / 244.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001755/0.005569, allocations: 32.2 kB / 244.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000581/0.00615, allocations: 163.5 kB / 244.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.235e-05/0.006183, allocations: 63.34 kB / 244.3 MB, free: 14.06 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.9e-05/0.006202, allocations: 4.219 kB / 244.3 MB, free: 14.05 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.124e-05/0.006253, allocations: 63.36 kB / 244.4 MB, free: 13.99 MB / 250.7 MB Notification: Performance of SimCode: time 4.61e-07/0.006253, allocations: 0 / 244.4 MB, free: 13.99 MB / 250.7 MB Notification: Performance of Templates: time 0.00199/0.008244, allocations: 0.6833 MB / 245.1 MB, free: 13.33 MB / 250.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.2873252481222153]