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.001296/0.001296, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001759/0.003055, allocations: 449.7 kB / 10.37 MB, free: 332 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.001/0.001, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001362/0.002362, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9237/0.9237, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0757/0.9994, allocations: 52.5 MB / 238.3 MB, free: 4.426 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 2.274e-06/2.274e-06, allocations: 3.984 kB / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.092e-05/1.32e-05, allocations: 2.312 kB / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002563/0.002576, allocations: 1.672 MB / 241.2 MB, free: 1.484 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007513/0.003327, allocations: 500 kB / 241.7 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.067e-05/0.003378, allocations: 4 kB / 241.7 MB, free: 0.9883 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 2.35e-05/0.003401, allocations: 7.875 kB / 241.7 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.136e-05/0.003453, allocations: 15.86 kB / 241.7 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001398/0.003593, allocations: 47.83 kB / 241.8 MB, free: 0.918 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 7.304e-05/0.003666, allocations: 51.78 kB / 241.8 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.293e-05/0.003719, allocations: 12.17 kB / 241.9 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.375e-05/0.003792, allocations: 35.8 kB / 241.9 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.603e-05/0.003828, allocations: 19.91 kB / 241.9 MB, free: 0.8008 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.003841, allocations: 4 kB / 241.9 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.533e-06/0.003848, allocations: 0 / 241.9 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.321e-05/0.003871, allocations: 15.92 kB / 241.9 MB, free: 0.7812 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 1.767e-05/0.003889, allocations: 8 kB / 241.9 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 6.952e-05/0.003958, allocations: 35.8 kB / 242 MB, free: 0.7383 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.003966, allocations: 4 kB / 242 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.003967, allocations: 4 kB / 242 MB, free: 0.7305 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.003974, allocations: 0 / 242 MB, free: 0.7305 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.0003215/0.004296, allocations: 288.3 kB / 242.3 MB, free: 436 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.004328, allocations: 8.031 kB / 242.3 MB, free: 428 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.004363, allocations: 8.922 kB / 242.3 MB, free: 420 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.004542, allocations: 145.5 kB / 242.4 MB, free: 248 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.004553, allocations: 4.375 kB / 242.4 MB, free: 244 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.004564, allocations: 8.375 kB / 242.4 MB, free: 236 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.004764, allocations: 107.2 kB / 242.5 MB, free: 104 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.004772, allocations: 192 / 242.5 MB, free: 104 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.004781, allocations: 12.06 kB / 242.5 MB, free: 92 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.004788, allocations: 0 / 242.5 MB, free: 92 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.814e-05/0.004816, allocations: 15.92 kB / 242.6 MB, free: 76 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002055/0.005022, allocations: 162.1 kB / 242.7 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.638e-05/0.005088, allocations: 59.67 kB / 242.8 MB, free: 15.81 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.915e-05/0.005117, allocations: 26.7 kB / 242.8 MB, free: 15.77 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.005137, allocations: 0 / 242.8 MB, free: 15.77 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.005166, allocations: 42.48 kB / 242.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.533e-06/0.005167, allocations: 0 / 242.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001356/0.005303, allocations: 53.56 kB / 242.9 MB, free: 15.66 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.005365, allocations: 106.8 kB / 243 MB, free: 15.54 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.256e-05/0.005458, allocations: 139 kB / 243.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.00547, allocations: 29.7 kB / 243.2 MB, free: 15.35 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.513e-05/0.005505, allocations: 92.06 kB / 243.3 MB, free: 15.26 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.301e-05/0.005518, allocations: 3.953 kB / 243.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.458e-05/0.005553, allocations: 17.72 kB / 243.3 MB, free: 15.23 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.83e-05/0.005641, allocations: 314.8 kB / 243.6 MB, free: 14.91 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-06/0.00565, allocations: 0 / 243.6 MB, free: 14.91 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.416e-06/0.005658, allocations: 4 kB / 243.6 MB, free: 14.91 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.341e-05/0.005682, allocations: 8.844 kB / 243.6 MB, free: 14.9 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.005683, allocations: 0 / 243.6 MB, free: 14.9 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.486e-05/0.005738, allocations: 37.77 kB / 243.6 MB, free: 14.86 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.00575, allocations: 4 kB / 243.6 MB, free: 14.85 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.005755, allocations: 3.938 kB / 243.6 MB, free: 14.85 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.005765, allocations: 3.984 kB / 243.6 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.666e-05/0.005831, allocations: 7.938 kB / 243.7 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.005834, allocations: 0 / 243.7 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.119e-05/0.005855, allocations: 0 / 243.7 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.005861, allocations: 4 kB / 243.7 MB, free: 14.83 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.879e-05/0.005919, allocations: 108.7 kB / 243.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.864e-05/0.005978, allocations: 45.72 kB / 243.8 MB, free: 14.66 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.525e-05/0.006013, allocations: 23.84 kB / 243.8 MB, free: 14.63 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.006017, allocations: 7.938 kB / 243.8 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.006018, allocations: 0 / 243.8 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.006021, allocations: 0 / 243.8 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.00614, allocations: 73.88 kB / 243.9 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.006143, allocations: 7.938 kB / 243.9 MB, free: 14.53 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.82e-05/0.006192, allocations: 11.98 kB / 243.9 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.405e-05/0.006256, allocations: 19.88 kB / 243.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.006258, allocations: 0 / 243.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.006263, allocations: 4 kB / 244 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.006266, allocations: 8 kB / 244 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.006267, allocations: 0 / 244 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.006e-05/0.006357, allocations: 149.2 kB / 244.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.006369, allocations: 0 / 244.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.274e-05/0.006441, allocations: 8 kB / 244.1 MB, free: 14.31 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.469e-05/0.006466, allocations: 7.922 kB / 244.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.006469, allocations: 0 / 244.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.442e-05/0.006493, allocations: 27.77 kB / 244.1 MB, free: 14.27 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006493, allocations: 0 / 244.1 MB, free: 14.27 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001072/0.0066, allocations: 4 kB / 244.2 MB, free: 14.27 MB / 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.077e-05/0.006661, allocations: 80.45 kB / 244.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.748e-05/0.006719, allocations: 24.83 kB / 244.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.006724, allocations: 7.938 kB / 244.3 MB, free: 14.15 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.866e-06/0.006733, allocations: 4.859 kB / 244.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.006914, allocations: 32.78 kB / 244.3 MB, free: 14.11 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006139/0.007528, allocations: 192 kB / 244.5 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.834e-05/0.007566, allocations: 59.36 kB / 244.5 MB, free: 13.81 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.915e-05/0.007585, allocations: 3.984 kB / 244.5 MB, free: 13.8 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.84e-05/0.007634, allocations: 63.36 kB / 244.6 MB, free: 13.74 MB / 250.7 MB Notification: Performance of SimCode: time 4.41e-07/0.007634, allocations: 0 / 244.6 MB, free: 13.74 MB / 250.7 MB Notification: Performance of Templates: time 0.002197/0.009831, allocations: 0.7514 MB / 245.4 MB, free: 13.01 MB / 250.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4067674055695534]