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.001955/0.001955, allocations: 88.62 kB / 20.96 MB, free: 3.477 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.002373/0.002373, allocations: 149.3 kB / 24.26 MB, free: 184 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 1.497/1.497, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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 2.845e-06/2.845e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.158e-05/4.442e-05, allocations: 6.25 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.004338/0.004383, allocations: 1.553 MB / 268.9 MB, free: 5.164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.005694, allocations: 490.4 kB / 269.3 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.005796, allocations: 0 / 269.3 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.995e-05/0.005876, allocations: 7.875 kB / 269.4 MB, free: 4.672 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.006045, allocations: 15.86 kB / 269.4 MB, free: 4.656 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.006422, allocations: 47.83 kB / 269.4 MB, free: 4.609 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.006575, allocations: 51.78 kB / 269.5 MB, free: 4.559 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.006701, allocations: 8.172 kB / 269.5 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.006853, allocations: 31.86 kB / 269.5 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.171e-05/0.006935, allocations: 19.91 kB / 269.5 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.006967, allocations: 4 kB / 269.5 MB, free: 4.496 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.622e-05/0.006983, allocations: 4 kB / 269.5 MB, free: 4.492 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.932e-05/0.007053, allocations: 15.92 kB / 269.5 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.112e-05/0.007094, allocations: 8 kB / 269.6 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.007279, allocations: 51.8 kB / 269.6 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.007282, allocations: 3.938 kB / 269.6 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.007283, allocations: 4 kB / 269.6 MB, free: 4.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.007289, allocations: 0 / 269.6 MB, free: 4.41 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.0006742/0.007963, allocations: 302 kB / 269.9 MB, free: 4.086 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.008022, allocations: 8.922 kB / 269.9 MB, free: 4.078 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.85e-05/0.0081, allocations: 20.83 kB / 269.9 MB, free: 4.059 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/0.008442, allocations: 141.5 kB / 270.1 MB, free: 3.895 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.008465, allocations: 8.359 kB / 270.1 MB, free: 3.887 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.008478, allocations: 384 / 270.1 MB, free: 3.887 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003912/0.008869, allocations: 113.6 kB / 270.2 MB, free: 3.758 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.008879, allocations: 192 / 270.2 MB, free: 3.758 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.008895, allocations: 4.125 kB / 270.2 MB, free: 3.754 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.0089, allocations: 0 / 270.2 MB, free: 3.754 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.009004, allocations: 19.92 kB / 270.2 MB, free: 3.734 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004067/0.009411, allocations: 205.5 kB / 270.4 MB, free: 3.5 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.009533, allocations: 41.2 kB / 270.5 MB, free: 3.441 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.956e-05/0.009603, allocations: 25.72 kB / 270.5 MB, free: 3.41 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.00963, allocations: 4 kB / 270.5 MB, free: 3.406 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.345e-05/0.009684, allocations: 38.44 kB / 270.5 MB, free: 3.359 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.009685, allocations: 0 / 270.5 MB, free: 3.359 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003534/0.01004, allocations: 73.56 kB / 270.6 MB, free: 3.281 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.01013, allocations: 77.11 kB / 270.7 MB, free: 3.188 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001962/0.01033, allocations: 141.8 kB / 270.8 MB, free: 3.039 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.01035, allocations: 25.95 kB / 270.8 MB, free: 3.008 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.917e-05/0.01044, allocations: 96.14 kB / 270.9 MB, free: 2.91 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.01046, allocations: 7.891 kB / 270.9 MB, free: 2.902 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.956e-05/0.01051, allocations: 13.7 kB / 271 MB, free: 2.883 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002273/0.01074, allocations: 318.8 kB / 271.3 MB, free: 2.562 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.973e-05/0.01079, allocations: 4 kB / 271.3 MB, free: 2.559 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.012e-05/0.01083, allocations: 7.984 kB / 271.3 MB, free: 2.551 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.01093, allocations: 24.78 kB / 271.3 MB, free: 2.523 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.01093, allocations: 0 / 271.3 MB, free: 2.523 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001532/0.01109, allocations: 53.69 kB / 271.3 MB, free: 2.465 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.0111, allocations: 4 kB / 271.4 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.01111, allocations: 0 / 271.4 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.01113, allocations: 0 / 271.4 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.901e-05/0.01122, allocations: 7.984 kB / 271.4 MB, free: 2.453 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.01122, allocations: 0 / 271.4 MB, free: 2.453 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.143e-05/0.01127, allocations: 11.95 kB / 271.4 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.01128, allocations: 0 / 271.4 MB, free: 2.441 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 0.0001159/0.0114, allocations: 109.8 kB / 271.5 MB, free: 2.324 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.01151, allocations: 53.59 kB / 271.5 MB, free: 2.266 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.247e-05/0.01155, allocations: 11.77 kB / 271.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.01155, allocations: 0 / 271.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.01156, allocations: 0 / 271.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.01156, allocations: 0 / 271.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.01179, allocations: 125.2 kB / 271.7 MB, free: 2.102 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.0118, allocations: 4 kB / 271.7 MB, free: 2.098 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.552e-05/0.01185, allocations: 4 kB / 271.7 MB, free: 2.094 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.01186, allocations: 0 / 271.7 MB, free: 2.094 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.01187, allocations: 7.938 kB / 271.7 MB, free: 2.086 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.01187, allocations: 4.031 kB / 271.7 MB, free: 2.082 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01187, allocations: 0 / 271.7 MB, free: 2.082 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.01214, allocations: 164.3 kB / 271.8 MB, free: 1.902 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.593e-05/0.01219, allocations: 15.92 kB / 271.9 MB, free: 1.887 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.01221, allocations: 3.938 kB / 271.9 MB, free: 1.883 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.837e-05/0.0123, allocations: 0 / 271.9 MB, free: 1.883 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.01235, allocations: 4 kB / 271.9 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.01235, allocations: 0 / 271.9 MB, free: 1.879 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001351/0.01249, allocations: 114.3 kB / 272 MB, free: 1.77 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.01249, allocations: 4 kB / 272 MB, free: 1.766 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003114/0.0128, allocations: 12.03 kB / 272 MB, free: 1.754 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 0.0001297/0.01293, allocations: 91.25 kB / 272.1 MB, free: 1.656 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001485/0.01307, allocations: 19.92 kB / 272.1 MB, free: 1.637 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.01308, allocations: 4 kB / 272.1 MB, free: 1.633 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.442e-05/0.01314, allocations: 11.98 kB / 272.1 MB, free: 1.621 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.01359, allocations: 16.3 kB / 272.1 MB, free: 1.602 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000501/0.01409, allocations: 180.2 kB / 272.3 MB, free: 1.402 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.0142, allocations: 71.33 kB / 272.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.202e-05/0.01424, allocations: 3.984 kB / 272.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.756e-05/0.0143, allocations: 12.5 kB / 272.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of SimCode: time 4.21e-07/0.0143, allocations: 0 / 272.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of Templates: time 0.003746/0.01804, allocations: 0.637 MB / 273 MB, free: 0.6719 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.278772210003808]