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.001244/0.001244, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001879/0.003123, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.00118/0.00118, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001513/0.002693, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.114/1.114, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1001/1.214, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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 1.784e-06/1.784e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.166e-05/2.344e-05, allocations: 9.062 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.00201/0.002033, allocations: 1.669 MB / 246.2 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007869/0.00282, allocations: 0.5537 MB / 246.7 MB, free: 12.09 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.921e-05/0.002899, allocations: 0 / 246.7 MB, free: 12.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.333e-05/0.002943, allocations: 7.938 kB / 246.7 MB, free: 12.09 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.003064, allocations: 11.88 kB / 246.7 MB, free: 12.07 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.003339, allocations: 63.67 kB / 246.8 MB, free: 12.01 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.003452, allocations: 47.8 kB / 246.9 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.003556, allocations: 12.17 kB / 246.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.003715, allocations: 43.83 kB / 246.9 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.679e-05/0.003772, allocations: 19.92 kB / 246.9 MB, free: 11.89 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.003788, allocations: 4 kB / 246.9 MB, free: 11.89 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.792e-05/0.003846, allocations: 7.984 kB / 246.9 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.591e-05/0.003881, allocations: 11.94 kB / 247 MB, free: 11.87 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.838e-05/0.0039, allocations: 15.94 kB / 247 MB, free: 11.85 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.004018, allocations: 43.78 kB / 247 MB, free: 11.81 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.388e-05/0.004032, allocations: 0 / 247 MB, free: 11.81 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.004033, allocations: 0 / 247 MB, free: 11.81 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.004046, allocations: 0 / 247 MB, free: 11.81 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.0003673/0.004413, allocations: 304.2 kB / 247.3 MB, free: 11.49 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.719e-05/0.00444, allocations: 8.031 kB / 247.3 MB, free: 11.48 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.004578, allocations: 90.03 kB / 247.4 MB, free: 11.38 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.004723, allocations: 142.2 kB / 247.5 MB, free: 11.21 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.819e-06/0.004733, allocations: 4.375 kB / 247.5 MB, free: 11.21 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.538e-06/0.004742, allocations: 8.359 kB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/0.004885, allocations: 106 kB / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.004894, allocations: 3.938 kB / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-06/0.0049, allocations: 0 / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.004904, allocations: 0 / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.625e-05/0.00492, allocations: 4 kB / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/0.005079, allocations: 165.1 kB / 247.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.469e-05/0.005113, allocations: 37.16 kB / 247.9 MB, free: 10.83 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.297e-05/0.005126, allocations: 9.719 kB / 247.9 MB, free: 10.82 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.005142, allocations: 4.062 kB / 247.9 MB, free: 10.81 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.00516, allocations: 34.5 kB / 247.9 MB, free: 10.77 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 7.11e-07/0.005161, allocations: 0 / 247.9 MB, free: 10.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 9.746e-05/0.005258, allocations: 49.62 kB / 248 MB, free: 10.71 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.005299, allocations: 81.05 kB / 248 MB, free: 10.62 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.349e-05/0.005373, allocations: 138.9 kB / 248.2 MB, free: 10.47 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.318e-06/0.005382, allocations: 33.69 kB / 248.2 MB, free: 10.43 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.583e-05/0.005408, allocations: 80.14 kB / 248.3 MB, free: 10.35 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.139e-05/0.005419, allocations: 7.953 kB / 248.3 MB, free: 10.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.242e-05/0.005442, allocations: 17.66 kB / 248.3 MB, free: 10.32 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.874e-05/0.005521, allocations: 322.8 kB / 248.6 MB, free: 9.992 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.254e-06/0.005528, allocations: 0 / 248.6 MB, free: 9.992 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-06/0.005534, allocations: 0 / 248.6 MB, free: 9.992 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.038e-05/0.005554, allocations: 12.86 kB / 248.6 MB, free: 9.977 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.005556, allocations: 0 / 248.6 MB, free: 9.977 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.171e-05/0.005598, allocations: 49.62 kB / 248.7 MB, free: 9.922 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.005608, allocations: 4 kB / 248.7 MB, free: 9.918 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.005611, allocations: 0 / 248.7 MB, free: 9.918 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.845e-06/0.005619, allocations: 0 / 248.7 MB, free: 9.918 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.538e-05/0.005675, allocations: 4 kB / 248.7 MB, free: 9.914 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.274e-06/0.005677, allocations: 0 / 248.7 MB, free: 9.914 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.256e-05/0.00569, allocations: 0 / 248.7 MB, free: 9.914 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-06/0.005694, allocations: 0 / 248.7 MB, free: 9.914 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 5.436e-05/0.005748, allocations: 116.7 kB / 248.8 MB, free: 9.789 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.005778, allocations: 33.64 kB / 248.8 MB, free: 9.75 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.692e-05/0.005805, allocations: 19.86 kB / 248.9 MB, free: 9.727 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.005807, allocations: 0 / 248.9 MB, free: 9.727 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.005809, allocations: 0 / 248.9 MB, free: 9.727 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.005812, allocations: 4 kB / 248.9 MB, free: 9.723 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.178e-05/0.005904, allocations: 73.88 kB / 248.9 MB, free: 9.633 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.005906, allocations: 0 / 248.9 MB, free: 9.633 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.05e-05/0.005936, allocations: 7.938 kB / 248.9 MB, free: 9.625 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.796e-05/0.005964, allocations: 19.86 kB / 249 MB, free: 9.605 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.005967, allocations: 4 kB / 249 MB, free: 9.602 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.426e-06/0.00597, allocations: 0 / 249 MB, free: 9.602 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.005971, allocations: 0 / 249 MB, free: 9.602 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.005972, allocations: 4 kB / 249 MB, free: 9.598 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.116e-05/0.006043, allocations: 140.4 kB / 249.1 MB, free: 9.441 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.907e-06/0.006052, allocations: 7.938 kB / 249.1 MB, free: 9.434 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.807e-05/0.00608, allocations: 0 / 249.1 MB, free: 9.434 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.787e-05/0.006098, allocations: 0 / 249.1 MB, free: 9.434 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.006101, allocations: 4 kB / 249.1 MB, free: 9.43 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.409e-05/0.006125, allocations: 27.83 kB / 249.1 MB, free: 9.402 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006125, allocations: 0 / 249.1 MB, free: 9.402 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001049/0.00623, allocations: 4 kB / 249.2 MB, free: 9.398 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 7.596e-05/0.006306, allocations: 92.33 kB / 249.2 MB, free: 9.297 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.8e-05/0.006354, allocations: 8.859 kB / 249.3 MB, free: 9.285 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.00636, allocations: 7.984 kB / 249.3 MB, free: 9.277 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.676e-06/0.006368, allocations: 4.859 kB / 249.3 MB, free: 9.27 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001746/0.006543, allocations: 26.98 kB / 249.3 MB, free: 9.242 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006059/0.007149, allocations: 179.6 kB / 249.5 MB, free: 9.039 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.459e-05/0.007184, allocations: 63.34 kB / 249.5 MB, free: 8.957 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.123e-05/0.007205, allocations: 8 kB / 249.5 MB, free: 8.949 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.328e-05/0.007258, allocations: 55.38 kB / 249.6 MB, free: 8.895 MB / 250.7 MB Notification: Performance of SimCode: time 6.62e-07/0.007259, allocations: 0 / 249.6 MB, free: 8.895 MB / 250.7 MB Notification: Performance of Templates: time 0.002099/0.009358, allocations: 0.6878 MB / 250.3 MB, free: 8.223 MB / 250.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 240] 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","",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.5175225725397468]