Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 113.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 208.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.036/2.036, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.00175, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5033/0.505, allocations: 50.54 MB / 409.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.00282/0.5079, allocations: 1.561 MB / 411.5 MB, free: 208 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.509, allocations: 0.5414 MB / 412 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.181e-05/0.5091, allocations: 0 / 412 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.951e-05/0.5092, allocations: 7.922 kB / 412 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.5093, allocations: 15.88 kB / 412 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003156/0.5096, allocations: 63.75 kB / 412.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.5097, allocations: 43.84 kB / 412.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.524e-05/0.5098, allocations: 24.11 kB / 412.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.51, allocations: 27.92 kB / 412.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.622e-05/0.51, allocations: 27.84 kB / 412.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.51, allocations: 0 / 412.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.003e-05/0.5101, allocations: 8 kB / 412.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.456e-05/0.5101, allocations: 19.92 kB / 412.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.152e-05/0.5102, allocations: 23.81 kB / 412.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.5103, allocations: 59.73 kB / 412.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.5103, allocations: 4 kB / 412.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5103, allocations: 3.938 kB / 412.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.5103, allocations: 0 / 412.3 MB, free: 15.33 MB / 334.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.000462/0.5108, allocations: 376.4 kB / 412.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.5109, allocations: 12.03 kB / 412.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.511, allocations: 20.73 kB / 412.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.5113, allocations: 212 kB / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.983e-06/0.5113, allocations: 4.312 kB / 413 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.5113, allocations: 7.938 kB / 413 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002764/0.5116, allocations: 113 kB / 413.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.5116, allocations: 0 / 413.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-06/0.5116, allocations: 4 kB / 413.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.5117, allocations: 0 / 413.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.725e-05/0.5117, allocations: 19.92 kB / 413.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000318/0.5121, allocations: 265.8 kB / 413.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.117e-05/0.5122, allocations: 49.14 kB / 413.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.89e-05/0.5122, allocations: 17.78 kB / 413.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.5122, allocations: 0 / 413.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.5123, allocations: 38.55 kB / 413.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 7.61e-07/0.5123, allocations: 0 / 413.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002342/0.5125, allocations: 69.53 kB / 413.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.5126, allocations: 81.09 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.5127, allocations: 149.7 kB / 413.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.5127, allocations: 25.7 kB / 413.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.486e-05/0.5128, allocations: 92.12 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.229e-05/0.5128, allocations: 0 / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.5128, allocations: 21.88 kB / 413.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.5129, allocations: 314.8 kB / 414.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.219e-05/0.513, allocations: 19.92 kB / 414.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.913e-05/0.513, allocations: 17.7 kB / 414.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.008e-05/0.5131, allocations: 25.72 kB / 414.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.5131, allocations: 8 kB / 414.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001241/0.5133, allocations: 57.61 kB / 414.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.5133, allocations: 6.969 kB / 414.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.5133, allocations: 4 kB / 414.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.5133, allocations: 0 / 414.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.342e-05/0.5134, allocations: 4 kB / 414.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.5134, allocations: 0 / 414.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.96e-05/0.5134, allocations: 11.92 kB / 414.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.5135, allocations: 64 / 414.3 MB, free: 13.06 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 7.238e-05/0.5135, allocations: 121.8 kB / 414.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.965e-05/0.5136, allocations: 45.53 kB / 414.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.704e-05/0.5136, allocations: 11.88 kB / 414.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.5136, allocations: 0 / 414.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.5137, allocations: 0 / 414.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.5137, allocations: 3.938 kB / 414.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.5138, allocations: 173.6 kB / 414.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.5138, allocations: 0 / 414.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.663e-05/0.5139, allocations: 16 kB / 414.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.5139, allocations: 3.938 kB / 414.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.5139, allocations: 4 kB / 414.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.5139, allocations: 0 / 414.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.5139, allocations: 0 / 414.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001617/0.5141, allocations: 168.2 kB / 414.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.347e-05/0.5142, allocations: 89.05 kB / 415 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.5142, allocations: 3.984 kB / 415 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.552e-05/0.5143, allocations: 4 kB / 415 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/0.5143, allocations: 3.938 kB / 415 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.5143, allocations: 4 kB / 415 MB, free: 12.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.186e-05/0.5144, allocations: 118.8 kB / 415.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5144, allocations: 0 / 415.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.5146, allocations: 4 kB / 415.1 MB, free: 12.2 MB / 334.1 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 9.288e-05/0.5147, allocations: 99.25 kB / 415.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001244/0.5149, allocations: 23.92 kB / 415.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.5149, allocations: 0 / 415.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.09e-05/0.5149, allocations: 11.98 kB / 415.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.5152, allocations: 18.25 kB / 415.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003382/0.5156, allocations: 193.5 kB / 415.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.5159, allocations: 0.6923 MB / 416.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.114e-05/0.5159, allocations: 15.44 kB / 416.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.5159, allocations: 0 / 416.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of Templates: time 0.001971/0.5179, allocations: 0.7876 MB / 416.9 MB, free: 10.29 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches