Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009063/0.0009063, allocations: 91.75 kB / 17.31 MB, free: 6.383 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.001107/0.001106, allocations: 178.3 kB / 18.21 MB, free: 5.547 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.333/1.333, allocations: 223.3 MB / 242.3 MB, free: 248 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002339/0.000234, allocations: 12.84 kB / 302.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07475/0.075, allocations: 50.41 MB / 352.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001618/0.07665, allocations: 1.268 MB / 353.8 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007353/0.07741, allocations: 474.8 kB / 354.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.101e-05/0.0775, allocations: 4 kB / 354.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.898e-05/0.07753, allocations: 3.938 kB / 354.2 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.07765, allocations: 7.922 kB / 354.2 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002414/0.0779, allocations: 51.89 kB / 354.3 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.169e-05/0.07799, allocations: 39.8 kB / 354.3 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.679e-05/0.07808, allocations: 16.17 kB / 354.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.247e-05/0.07815, allocations: 23.81 kB / 354.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.24e-05/0.07821, allocations: 27.84 kB / 354.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.326e-05/0.07823, allocations: 0 / 354.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.021e-05/0.07825, allocations: 0 / 354.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.284e-05/0.0783, allocations: 11.92 kB / 354.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.093e-05/0.07835, allocations: 53.52 kB / 354.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.771e-05/0.07842, allocations: 35.92 kB / 354.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.07843, allocations: 0 / 354.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.07844, allocations: 0 / 354.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.07844, allocations: 4 kB / 354.5 MB, free: 1.684 MB / 286.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.0003686/0.07882, allocations: 363.5 kB / 354.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.07886, allocations: 12.03 kB / 354.9 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.908e-05/0.07889, allocations: 8.844 kB / 354.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.07906, allocations: 198.8 kB / 355.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.07908, allocations: 12.38 kB / 355.1 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.0791, allocations: 4.312 kB / 355.1 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.07934, allocations: 109.2 kB / 355.2 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.07936, allocations: 0 / 355.2 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.07937, allocations: 4 kB / 355.2 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.07938, allocations: 3.984 kB / 355.2 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.543e-05/0.07947, allocations: 23.98 kB / 355.2 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002554/0.07974, allocations: 261.8 kB / 355.5 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.108e-05/0.07983, allocations: 49.16 kB / 355.5 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.135e-05/0.07989, allocations: 21.77 kB / 355.5 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.07991, allocations: 0 / 355.5 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.07993, allocations: 34.5 kB / 355.6 MB, free: 424 kB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.07994, allocations: 4 kB / 355.6 MB, free: 420 kB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002371/0.08019, allocations: 73.58 kB / 355.7 MB, free: 340 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.08024, allocations: 85.05 kB / 355.7 MB, free: 236 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.08035, allocations: 137.8 kB / 355.9 MB, free: 88 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.08037, allocations: 25.7 kB / 355.9 MB, free: 56 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.182e-05/0.08043, allocations: 100.4 kB / 356 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.08045, allocations: 3.938 kB / 356 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/0.08048, allocations: 9.719 kB / 356 MB, free: 15.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.89e-05/0.08057, allocations: 326.8 kB / 356.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.353e-05/0.08062, allocations: 4 kB / 356.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.944e-05/0.08068, allocations: 21.7 kB / 356.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.227e-05/0.08078, allocations: 37.77 kB / 356.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.08079, allocations: 3.938 kB / 356.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001258/0.08092, allocations: 57.59 kB / 356.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.08095, allocations: 12.06 kB / 356.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.08096, allocations: 4 kB / 356.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.08097, allocations: 3.938 kB / 356.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.7e-05/0.08104, allocations: 7.984 kB / 356.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.08106, allocations: 0 / 356.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.052e-05/0.0811, allocations: 4 kB / 356.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.08112, allocations: 7.938 kB / 356.5 MB, free: 15.43 MB / 302.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.584e-05/0.0812, allocations: 125.7 kB / 356.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.472e-05/0.08126, allocations: 37.61 kB / 356.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.544e-05/0.0813, allocations: 11.88 kB / 356.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.08131, allocations: 0 / 356.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.08132, allocations: 4 kB / 356.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.08132, allocations: 0 / 356.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.08148, allocations: 169.6 kB / 356.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.08149, allocations: 0 / 356.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.006e-05/0.08155, allocations: 11.98 kB / 356.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.08156, allocations: 0 / 356.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.08157, allocations: 0 / 356.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.08157, allocations: 4.031 kB / 356.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.08158, allocations: 4 kB / 356.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.08175, allocations: 168.2 kB / 357 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.167e-05/0.08181, allocations: 89 kB / 357.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.08184, allocations: 8.031 kB / 357.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.982e-05/0.08191, allocations: 0 / 357.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.53e-05/0.08194, allocations: 8 kB / 357.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.08195, allocations: 0 / 357.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.084e-05/0.08203, allocations: 109.8 kB / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.08203, allocations: 0 / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002333/0.08227, allocations: 8 kB / 357.2 MB, free: 14.58 MB / 302.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 7.402e-05/0.08235, allocations: 99.19 kB / 357.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.08248, allocations: 31.92 kB / 357.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.08249, allocations: 0 / 357.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.232e-05/0.08254, allocations: 11.98 kB / 357.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.0829, allocations: 19.95 kB / 357.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003121/0.08322, allocations: 223.6 kB / 357.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.08345, allocations: 0.6848 MB / 358.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.428e-05/0.08348, allocations: 11.44 kB / 358.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.08349, allocations: 0 / 358.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Templates: time 0.001936/0.08543, allocations: 0.7611 MB / 359.1 MB, free: 12.68 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches