Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.0007132/0.0007132, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009748/0.001688, 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.000617/0.000617, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008465/0.001464, 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.823/0.823, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1348/0.9578, allocations: 52.5 MB / 238.5 MB, free: 7.609 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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 239.7 MB, free: 6.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/1.987e-05, allocations: 2.312 kB / 239.7 MB, free: 6.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.00294/0.00296, allocations: 1.684 MB / 241.4 MB, free: 4.664 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006852/0.003645, allocations: 488.7 kB / 241.9 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.368e-05/0.003719, allocations: 11.88 kB / 241.9 MB, free: 4.172 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.158e-05/0.00376, allocations: 8.609 kB / 241.9 MB, free: 4.164 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.75e-05/0.003838, allocations: 3.938 kB / 241.9 MB, free: 4.16 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001958/0.004034, allocations: 58.2 kB / 242 MB, free: 4.105 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.004146, allocations: 47.78 kB / 242 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.224e-05/0.004228, allocations: 16.17 kB / 242.1 MB, free: 4.043 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.004341, allocations: 39.83 kB / 242.1 MB, free: 4.004 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.004395, allocations: 7.984 kB / 242.1 MB, free: 3.996 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.004417, allocations: 4 kB / 242.1 MB, free: 3.992 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.283e-05/0.00443, allocations: 5.438 kB / 242.1 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.249e-05/0.004473, allocations: 15.94 kB / 242.1 MB, free: 3.973 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.355e-05/0.004496, allocations: 11.94 kB / 242.1 MB, free: 3.961 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.004598, allocations: 36.61 kB / 242.2 MB, free: 3.926 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/0.004609, allocations: 0 / 242.2 MB, free: 3.926 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.00461, allocations: 0 / 242.2 MB, free: 3.926 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.00462, allocations: 1.094 kB / 242.2 MB, free: 3.926 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.0003885/0.005009, allocations: 292.2 kB / 242.5 MB, free: 3.617 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.005045, allocations: 15.16 kB / 242.5 MB, free: 3.605 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.005078, allocations: 4.938 kB / 242.5 MB, free: 3.602 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.005253, allocations: 141.6 kB / 242.6 MB, free: 3.438 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-06/0.005262, allocations: 4.375 kB / 242.6 MB, free: 3.434 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.005274, allocations: 4.375 kB / 242.6 MB, free: 3.43 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.005459, allocations: 120.4 kB / 242.7 MB, free: 3.289 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.005466, allocations: 192 / 242.7 MB, free: 3.289 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.005475, allocations: 4.125 kB / 242.7 MB, free: 3.285 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.00548, allocations: 1.031 kB / 242.7 MB, free: 3.285 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.246e-05/0.005503, allocations: 12 kB / 242.8 MB, free: 3.273 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001782/0.005681, allocations: 169 kB / 242.9 MB, free: 3.09 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.333e-05/0.005744, allocations: 59.73 kB / 243 MB, free: 3.004 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.599e-05/0.00577, allocations: 22.69 kB / 243 MB, free: 2.973 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.005788, allocations: 4 kB / 243 MB, free: 2.969 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.00581, allocations: 30.56 kB / 243 MB, free: 2.93 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.005811, allocations: 0 / 243 MB, free: 2.93 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001361/0.005947, allocations: 67.36 kB / 243.1 MB, free: 2.859 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.006001, allocations: 110.8 kB / 243.2 MB, free: 2.727 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.188e-05/0.006093, allocations: 143.7 kB / 243.4 MB, free: 2.578 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.006104, allocations: 29.7 kB / 243.4 MB, free: 2.543 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.149e-05/0.006136, allocations: 84.14 kB / 243.5 MB, free: 2.457 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.12e-05/0.006147, allocations: 0 / 243.5 MB, free: 2.457 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.784e-05/0.006175, allocations: 17.67 kB / 243.5 MB, free: 2.434 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.72e-05/0.006252, allocations: 323.5 kB / 243.8 MB, free: 2.109 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.073e-06/0.006259, allocations: 0 / 243.8 MB, free: 2.109 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.232e-06/0.006265, allocations: 0.6875 kB / 243.8 MB, free: 2.109 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.157e-05/0.006287, allocations: 14.77 kB / 243.8 MB, free: 2.094 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.006289, allocations: 0 / 243.8 MB, free: 2.094 MB / 234.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.477e-05/0.006333, allocations: 33.69 kB / 243.8 MB, free: 2.055 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.006346, allocations: 8 kB / 243.9 MB, free: 2.047 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.00635, allocations: 5.406 kB / 243.9 MB, free: 2.043 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.006361, allocations: 0 / 243.9 MB, free: 2.043 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.244e-05/0.006414, allocations: 4 kB / 243.9 MB, free: 2.039 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-06/0.006417, allocations: 0 / 243.9 MB, free: 2.039 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.84e-05/0.006435, allocations: 0.625 kB / 243.9 MB, free: 2.039 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.006441, allocations: 0 / 243.9 MB, free: 2.039 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 5.691e-05/0.006498, allocations: 117.2 kB / 244 MB, free: 1.914 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.59e-05/0.006554, allocations: 47.84 kB / 244 MB, free: 1.863 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.081e-05/0.006584, allocations: 15.91 kB / 244 MB, free: 1.84 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.006586, allocations: 0 / 244 MB, free: 1.84 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.006589, allocations: 4 kB / 244 MB, free: 1.836 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.006591, allocations: 0 / 244 MB, free: 1.836 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.006704, allocations: 74.38 kB / 244.1 MB, free: 1.746 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.006705, allocations: 0.8438 kB / 244.1 MB, free: 1.746 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-05/0.006744, allocations: 11.98 kB / 244.1 MB, free: 1.734 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.071e-05/0.006774, allocations: 17.52 kB / 244.1 MB, free: 1.719 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.006776, allocations: 0 / 244.1 MB, free: 1.719 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-06/0.006781, allocations: 0 / 244.1 MB, free: 1.719 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.006784, allocations: 11.88 kB / 244.2 MB, free: 1.707 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.006786, allocations: 3.984 kB / 244.2 MB, free: 1.703 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.151e-05/0.006868, allocations: 145.8 kB / 244.3 MB, free: 1.539 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.006882, allocations: 11.98 kB / 244.3 MB, free: 1.527 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.465e-05/0.006936, allocations: 0 / 244.3 MB, free: 1.527 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.213e-05/0.006958, allocations: 11.88 kB / 244.3 MB, free: 1.516 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.006962, allocations: 0 / 244.3 MB, free: 1.516 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.88e-05/0.006991, allocations: 20.84 kB / 244.3 MB, free: 1.492 MB / 234.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006991, allocations: 0 / 244.3 MB, free: 1.492 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002006/0.007191, allocations: 8 kB / 244.4 MB, free: 1.484 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.17e-05/0.007263, allocations: 88.33 kB / 244.4 MB, free: 1.391 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 5.734e-05/0.00732, allocations: 16.89 kB / 244.5 MB, free: 1.371 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.007326, allocations: 4 kB / 244.5 MB, free: 1.367 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 1.592e-05/0.007342, allocations: 4.859 kB / 244.5 MB, free: 1.359 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.007631, allocations: 135.7 kB / 244.6 MB, free: 1.199 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000852/0.008483, allocations: 191.7 kB / 244.8 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.064e-05/0.008524, allocations: 59.78 kB / 244.8 MB, free: 0.9023 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.901e-05/0.008553, allocations: 11.91 kB / 244.9 MB, free: 0.8906 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.466e-05/0.008618, allocations: 59.36 kB / 244.9 MB, free: 0.832 MB / 234.7 MB Notification: Performance of SimCode: time 4.4e-07/0.008618, allocations: 0 / 244.9 MB, free: 0.832 MB / 234.7 MB Notification: Performance of Templates: time 0.002537/0.01115, allocations: 0.7473 MB / 245.7 MB, free: 112 kB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/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.182762091048062]