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.001463/0.001463, allocations: 78.19 kB / 21.42 MB, free: 3.078 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.0009521/0.0009521, allocations: 149 kB / 24.81 MB, free: 9.285 MB / 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 0.9555/0.9555, allocations: 173.4 MB / 201.4 MB, free: 9.195 MB / 186.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 2.284e-06/2.284e-06, allocations: 3.938 kB / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.519e-05/2.747e-05, allocations: 6.25 kB / 268.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.00236/0.002387, allocations: 1.619 MB / 270 MB, free: 4.539 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006942/0.003082, allocations: 490.5 kB / 270.5 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.878e-05/0.00318, allocations: 0 / 270.5 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.496e-05/0.003235, allocations: 7.938 kB / 270.5 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.003395, allocations: 15.86 kB / 270.5 MB, free: 4.031 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.003641, allocations: 47.77 kB / 270.6 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.003755, allocations: 51.78 kB / 270.6 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.003864, allocations: 8.172 kB / 270.6 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.71e-05/0.003951, allocations: 31.91 kB / 270.7 MB, free: 3.895 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.324e-05/0.004005, allocations: 11.98 kB / 270.7 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.004026, allocations: 4 kB / 270.7 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.209e-05/0.004038, allocations: 4 kB / 270.7 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.975e-05/0.004097, allocations: 19.92 kB / 270.7 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/0.004121, allocations: 11.94 kB / 270.7 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.00425, allocations: 47.77 kB / 270.8 MB, free: 3.797 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.382e-06/0.004251, allocations: 0 / 270.8 MB, free: 3.797 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.004252, allocations: 0 / 270.8 MB, free: 3.797 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.349e-06/0.004256, allocations: 0 / 270.8 MB, free: 3.797 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.0004218/0.004678, allocations: 408.2 kB / 271.2 MB, free: 3.363 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.004723, allocations: 12.03 kB / 271.2 MB, free: 3.352 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.615e-05/0.004759, allocations: 12.84 kB / 271.2 MB, free: 3.34 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.004923, allocations: 140.5 kB / 271.3 MB, free: 3.176 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.004934, allocations: 4.375 kB / 271.3 MB, free: 3.172 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-06/0.004941, allocations: 4.375 kB / 271.3 MB, free: 3.168 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.00513, allocations: 133.2 kB / 271.5 MB, free: 3.008 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.005137, allocations: 192 / 271.5 MB, free: 3.008 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.005144, allocations: 4.125 kB / 271.5 MB, free: 3.004 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.005149, allocations: 0 / 271.5 MB, free: 3.004 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.85e-05/0.005167, allocations: 15.97 kB / 271.5 MB, free: 2.988 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002207/0.005388, allocations: 255.7 kB / 271.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.664e-05/0.005455, allocations: 93.17 kB / 271.8 MB, free: 2.574 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.673e-05/0.005481, allocations: 35.17 kB / 271.9 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.005501, allocations: 4 kB / 271.9 MB, free: 2.523 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.00552, allocations: 33.39 kB / 271.9 MB, free: 2.48 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.005521, allocations: 4 kB / 271.9 MB, free: 2.477 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.000129/0.00565, allocations: 73.78 kB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.005697, allocations: 110.8 kB / 272.1 MB, free: 2.266 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.64e-05/0.005784, allocations: 188.6 kB / 272.3 MB, free: 2.066 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.005794, allocations: 29.7 kB / 272.3 MB, free: 2.031 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.647e-05/0.00586, allocations: 134.9 kB / 272.4 MB, free: 1.895 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.005879, allocations: 11.94 kB / 272.4 MB, free: 1.883 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.005914, allocations: 19.38 kB / 272.5 MB, free: 1.855 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.006039, allocations: 492.1 kB / 272.9 MB, free: 1.363 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.837e-06/0.006048, allocations: 4 kB / 272.9 MB, free: 1.359 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-06/0.006055, allocations: 0 / 272.9 MB, free: 1.359 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.906e-05/0.006084, allocations: 19.7 kB / 273 MB, free: 1.336 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.006085, allocations: 3.938 kB / 273 MB, free: 1.332 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.453e-05/0.00613, allocations: 37.66 kB / 273 MB, free: 1.289 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.006141, allocations: 10.91 kB / 273 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.006145, allocations: 4 kB / 273 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.006156, allocations: 0 / 273 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.525e-05/0.006201, allocations: 0 / 273 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.766e-06/0.006204, allocations: 0 / 273 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.688e-05/0.00622, allocations: 7.984 kB / 273 MB, free: 1.27 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.006225, allocations: 0 / 273 MB, free: 1.27 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.816e-05/0.006283, allocations: 164.6 kB / 273.2 MB, free: 1.098 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.006321, allocations: 49.59 kB / 273.2 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.639e-05/0.006348, allocations: 19.89 kB / 273.3 MB, free: 1.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.00635, allocations: 4 kB / 273.3 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.006352, allocations: 0 / 273.3 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.006354, allocations: 0 / 273.3 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.6e-05/0.00644, allocations: 105.2 kB / 273.4 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.006441, allocations: 0 / 273.4 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.329e-05/0.006464, allocations: 8 kB / 273.4 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.006465, allocations: 4.062 kB / 273.4 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.006471, allocations: 11.98 kB / 273.4 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.006473, allocations: 3.938 kB / 273.4 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.006474, allocations: 3.938 kB / 273.4 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.755e-05/0.006552, allocations: 199.3 kB / 273.6 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.736e-05/0.006579, allocations: 19.94 kB / 273.6 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.155e-06/0.006588, allocations: 0 / 273.6 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.159e-05/0.006619, allocations: 0 / 273.6 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.038e-05/0.00664, allocations: 11.92 kB / 273.6 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.006643, allocations: 0 / 273.6 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.265e-05/0.006685, allocations: 143.2 kB / 273.8 MB, free: 472 kB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006685, allocations: 0 / 273.8 MB, free: 472 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001305/0.006816, allocations: 12 kB / 273.8 MB, free: 460 kB / 250.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 6.474e-05/0.006881, allocations: 95.19 kB / 273.9 MB, free: 356 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.27e-05/0.006933, allocations: 19.67 kB / 273.9 MB, free: 332 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.41e-07/0.006934, allocations: 0 / 273.9 MB, free: 332 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.202e-05/0.006946, allocations: 11.69 kB / 273.9 MB, free: 316 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.007168, allocations: 32.48 kB / 273.9 MB, free: 284 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000339/0.007507, allocations: 200.2 kB / 274.1 MB, free: 48 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.553e-05/0.007553, allocations: 59.34 kB / 274.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.838e-05/0.007571, allocations: 4 kB / 274.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.099e-05/0.007622, allocations: 78.19 kB / 274.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.007623, allocations: 0 / 274.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of Templates: time 0.001941/0.009563, allocations: 0.7641 MB / 275 MB, free: 15.14 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.553061572369188]