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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 110.9 kB / 17.74 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 184.5 kB / 18.67 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 47.94 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2968, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002913/0.2997, allocations: 1.582 MB / 403 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009125/0.3007, allocations: 490.6 kB / 403.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.724e-05/0.3008, allocations: 7.938 kB / 403.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.862e-05/0.3009, allocations: 11.88 kB / 403.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.301, allocations: 11.91 kB / 403.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003095/0.3014, allocations: 54.58 kB / 403.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.3015, allocations: 39.86 kB / 403.6 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.3016, allocations: 16.17 kB / 403.6 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.946e-05/0.3017, allocations: 27.84 kB / 403.6 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.294e-05/0.3018, allocations: 27.86 kB / 403.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.3018, allocations: 4 kB / 403.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.487e-05/0.3018, allocations: 4 kB / 403.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.023e-05/0.3019, allocations: 11.94 kB / 403.7 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.653e-05/0.3019, allocations: 27.8 kB / 403.7 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.3021, allocations: 55.75 kB / 403.8 MB, free: 6.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3021, allocations: 7.922 kB / 403.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3021, allocations: 0 / 403.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.3021, allocations: 0 / 403.8 MB, free: 6.492 MB / 318.1 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.0005244/0.3027, allocations: 372.3 kB / 404.1 MB, free: 6.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3027, allocations: 11.89 kB / 404.1 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.531e-05/0.3028, allocations: 12.84 kB / 404.2 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.303, allocations: 208 kB / 404.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.303, allocations: 384 / 404.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.3031, allocations: 4.375 kB / 404.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003056/0.3034, allocations: 122 kB / 404.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.3034, allocations: 4 kB / 404.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.3034, allocations: 0 / 404.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.3034, allocations: 0 / 404.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.499e-05/0.3035, allocations: 27.91 kB / 404.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003451/0.3039, allocations: 270.6 kB / 404.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.304, allocations: 71.78 kB / 404.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.427e-05/0.3041, allocations: 30.64 kB / 404.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.3041, allocations: 7.984 kB / 404.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.3042, allocations: 38.55 kB / 404.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.3042, allocations: 0 / 404.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002843/0.3045, allocations: 81.45 kB / 405 MB, free: 5.047 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.3045, allocations: 115.2 kB / 405.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.3047, allocations: 141.8 kB / 405.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.3047, allocations: 29.7 kB / 405.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.3048, allocations: 88.05 kB / 405.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.3048, allocations: 4 kB / 405.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.445e-05/0.3048, allocations: 13.72 kB / 405.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.305, allocations: 326.8 kB / 405.7 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.154e-05/0.305, allocations: 4 kB / 405.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.054e-05/0.3051, allocations: 43.36 kB / 405.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.031e-05/0.3052, allocations: 47.42 kB / 405.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3052, allocations: 4 kB / 405.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001393/0.3053, allocations: 77.45 kB / 405.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.3053, allocations: 4 kB / 405.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3054, allocations: 0 / 405.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.3054, allocations: 4 kB / 405.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.588e-05/0.3055, allocations: 11.92 kB / 405.9 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.3055, allocations: 4 kB / 405.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.954e-05/0.3055, allocations: 4.062 kB / 405.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.3055, allocations: 12 kB / 405.9 MB, free: 4.043 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (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 prepare postOptimizeDAE: time 7.376e-05/0.3056, allocations: 121.8 kB / 406 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.928e-05/0.3057, allocations: 53.55 kB / 406.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.422e-05/0.3057, allocations: 19.8 kB / 406.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3057, allocations: 0 / 406.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3058, allocations: 0 / 406.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.3058, allocations: 0 / 406.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001667/0.3059, allocations: 173.6 kB / 406.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3059, allocations: 4.062 kB / 406.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.895e-05/0.306, allocations: 11.98 kB / 406.3 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.306, allocations: 3.938 kB / 406.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.306, allocations: 4 kB / 406.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.306, allocations: 0 / 406.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.306, allocations: 0 / 406.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.3062, allocations: 181.1 kB / 406.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.763e-05/0.3063, allocations: 97 kB / 406.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.3063, allocations: 0 / 406.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.125e-05/0.3064, allocations: 4 kB / 406.6 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/0.3064, allocations: 3.984 kB / 406.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-06/0.3064, allocations: 0 / 406.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.481e-05/0.3065, allocations: 110 kB / 406.7 MB, free: 3.164 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.752e-06/0.3065, allocations: 0 / 406.7 MB, free: 3.164 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002377/0.3068, allocations: 7.938 kB / 406.7 MB, free: 3.156 MB / 318.1 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 0.0001004/0.3069, allocations: 115.2 kB / 406.8 MB, free: 3.035 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.307, allocations: 27.92 kB / 406.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.307, allocations: 0 / 406.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.521e-05/0.3071, allocations: 11.98 kB / 406.9 MB, free: 2.996 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.3074, allocations: 32.36 kB / 406.9 MB, free: 2.965 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003695/0.3078, allocations: 210.4 kB / 407.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.3081, allocations: 0.6922 MB / 407.8 MB, free: 2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.159e-05/0.3081, allocations: 11.44 kB / 407.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3081, allocations: 0 / 407.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of Templates: time 0.002392/0.3105, allocations: 0.8555 MB / 408.6 MB, free: 1.137 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches