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.0007853/0.0007853, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001248/0.002033, allocations: 449.8 kB / 10.44 MB, free: 252 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.0006774/0.0006774, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009391/0.001616, allocations: 479.5 kB / 11.82 MB, free: 2.344 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 0.9497/0.9497, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1063/1.056, allocations: 53.66 MB / 243.4 MB, free: 15.5 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.923e-06/1.923e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.842e-05/2.035e-05, allocations: 6.312 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001935/0.001955, allocations: 1.674 MB / 246.4 MB, free: 12.54 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009405/0.002895, allocations: 0.5529 MB / 246.9 MB, free: 11.98 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.94e-05/0.002975, allocations: 7.938 kB / 246.9 MB, free: 11.97 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.549e-05/0.00301, allocations: 7.938 kB / 246.9 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.287e-05/0.003083, allocations: 11.86 kB / 246.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000182/0.003265, allocations: 59.75 kB / 247 MB, free: 11.89 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.671e-05/0.003362, allocations: 51.78 kB / 247 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.048e-05/0.003442, allocations: 8.188 kB / 247.1 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.003574, allocations: 59.77 kB / 247.1 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.979e-05/0.003624, allocations: 11.92 kB / 247.1 MB, free: 11.77 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.003643, allocations: 4 kB / 247.1 MB, free: 11.76 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.36e-05/0.003696, allocations: 4 kB / 247.1 MB, free: 11.76 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.241e-05/0.003739, allocations: 19.92 kB / 247.2 MB, free: 11.74 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.794e-05/0.003757, allocations: 12 kB / 247.2 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.003875, allocations: 43.78 kB / 247.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.109e-05/0.003886, allocations: 0 / 247.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.003886, allocations: 0 / 247.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.003896, allocations: 0 / 247.2 MB, free: 11.68 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.0003825/0.004279, allocations: 292.2 kB / 247.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.004312, allocations: 11.97 kB / 247.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.004464, allocations: 94.03 kB / 247.6 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.004644, allocations: 146.2 kB / 247.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.004652, allocations: 4.375 kB / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-06/0.004662, allocations: 384 / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.004835, allocations: 118 kB / 247.9 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.004841, allocations: 0 / 247.9 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.004849, allocations: 0 / 247.9 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.004855, allocations: 4 kB / 247.9 MB, free: 10.94 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.513e-05/0.00487, allocations: 3.938 kB / 247.9 MB, free: 10.94 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001961/0.005066, allocations: 153.1 kB / 248 MB, free: 10.77 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.193e-05/0.005108, allocations: 37.12 kB / 248.1 MB, free: 10.71 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.71e-05/0.005125, allocations: 17.84 kB / 248.1 MB, free: 10.69 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.005141, allocations: 3.984 kB / 248.1 MB, free: 10.69 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.005163, allocations: 34.5 kB / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.005164, allocations: 4 kB / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001139/0.005278, allocations: 41.62 kB / 248.2 MB, free: 10.59 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.005324, allocations: 77.11 kB / 248.2 MB, free: 10.5 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.802e-05/0.005402, allocations: 145.9 kB / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.005411, allocations: 29.7 kB / 248.4 MB, free: 10.31 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.604e-05/0.005447, allocations: 88.12 kB / 248.5 MB, free: 10.22 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.005464, allocations: 7.938 kB / 248.5 MB, free: 10.21 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.248e-05/0.005486, allocations: 13.72 kB / 248.5 MB, free: 10.2 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.644e-05/0.005563, allocations: 314.8 kB / 248.8 MB, free: 9.879 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.973e-06/0.00557, allocations: 0 / 248.8 MB, free: 9.879 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.062e-06/0.005576, allocations: 7.938 kB / 248.8 MB, free: 9.871 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.748e-05/0.005593, allocations: 8.844 kB / 248.8 MB, free: 9.859 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.005596, allocations: 4 kB / 248.8 MB, free: 9.855 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.849e-05/0.005634, allocations: 37.7 kB / 248.9 MB, free: 9.812 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.005646, allocations: 4 kB / 248.9 MB, free: 9.809 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.00565, allocations: 0 / 248.9 MB, free: 9.809 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.005661, allocations: 0 / 248.9 MB, free: 9.809 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.628e-05/0.005717, allocations: 7.984 kB / 248.9 MB, free: 9.801 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.005721, allocations: 0 / 248.9 MB, free: 9.801 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.431e-05/0.005735, allocations: 4 kB / 248.9 MB, free: 9.797 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.00574, allocations: 0 / 248.9 MB, free: 9.797 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.101e-05/0.005791, allocations: 116.6 kB / 249 MB, free: 9.672 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.276e-05/0.005824, allocations: 49.59 kB / 249.1 MB, free: 9.617 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.286e-05/0.005847, allocations: 3.812 kB / 249.1 MB, free: 9.613 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.005849, allocations: 4 kB / 249.1 MB, free: 9.609 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.005851, allocations: 0 / 249.1 MB, free: 9.609 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.005854, allocations: 0 / 249.1 MB, free: 9.609 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.932e-05/0.005933, allocations: 77.88 kB / 249.1 MB, free: 9.516 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.005934, allocations: 0 / 249.1 MB, free: 9.516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.861e-05/0.005953, allocations: 7.984 kB / 249.1 MB, free: 9.508 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.425e-05/0.005977, allocations: 15.89 kB / 249.2 MB, free: 9.492 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.005978, allocations: 0 / 249.2 MB, free: 9.492 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-06/0.005982, allocations: 0 / 249.2 MB, free: 9.492 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.005983, allocations: 4.031 kB / 249.2 MB, free: 9.488 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.005984, allocations: 4 kB / 249.2 MB, free: 9.484 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.155e-05/0.006046, allocations: 144.3 kB / 249.3 MB, free: 9.324 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.969e-06/0.006056, allocations: 3.938 kB / 249.3 MB, free: 9.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.811e-05/0.006084, allocations: 3.984 kB / 249.3 MB, free: 9.316 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.029e-05/0.006104, allocations: 4 kB / 249.3 MB, free: 9.312 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.006106, allocations: 0 / 249.3 MB, free: 9.312 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.653e-05/0.006133, allocations: 32.83 kB / 249.4 MB, free: 9.277 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006133, allocations: 0 / 249.4 MB, free: 9.277 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001061/0.006239, allocations: 4 kB / 249.4 MB, free: 9.273 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.436e-05/0.006303, allocations: 84.44 kB / 249.4 MB, free: 9.18 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.436e-05/0.006358, allocations: 12.8 kB / 249.4 MB, free: 9.164 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.006362, allocations: 0 / 249.4 MB, free: 9.164 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.377e-05/0.006375, allocations: 8.859 kB / 249.5 MB, free: 9.152 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.00659, allocations: 135 kB / 249.6 MB, free: 8.992 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006208/0.007211, allocations: 179.8 kB / 249.8 MB, free: 8.789 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.317e-05/0.007254, allocations: 63.34 kB / 249.8 MB, free: 8.707 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.738e-05/0.007282, allocations: 3.984 kB / 249.8 MB, free: 8.703 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.683e-05/0.007359, allocations: 55.38 kB / 249.9 MB, free: 8.648 MB / 250.7 MB Notification: Performance of SimCode: time 7.22e-07/0.007359, allocations: 0 / 249.9 MB, free: 8.648 MB / 250.7 MB Notification: Performance of Templates: time 0.002206/0.009565, allocations: 0.7016 MB / 250.6 MB, free: 7.969 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.660132858902216]