Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 223.3 MB / 241.4 MB, free: 9.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000816/0.0008162, allocations: 94.58 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005258/0.0005259, allocations: 11.94 kB / 352.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2702, allocations: 50.41 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.3914, allocations: 77.28 MB / 480 MB, free: 3.047 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.3917, allocations: 75.95 kB / 480.1 MB, free: 2.973 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004532/0.3963, allocations: 1.633 MB / 481.7 MB, free: 1.348 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.995e-06/0.3963, allocations: 0 / 481.7 MB, free: 1.348 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.3964, allocations: 0 / 481.7 MB, free: 1.348 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000433/0.3968, allocations: 395.1 kB / 482.1 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3968, allocations: 8.031 kB / 482.1 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.778e-05/0.3969, allocations: 12.84 kB / 482.1 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.3971, allocations: 196.7 kB / 482.3 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.3971, allocations: 8.312 kB / 482.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.3971, allocations: 4.375 kB / 482.3 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002966/0.3974, allocations: 139.2 kB / 482.5 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.3975, allocations: 4.188 kB / 482.5 MB, free: 496 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.3975, allocations: 3.938 kB / 482.5 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.3975, allocations: 0 / 482.5 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.133e-05/0.3976, allocations: 35.92 kB / 482.5 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003768/0.398, allocations: 295.4 kB / 482.8 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.3981, allocations: 102.4 kB / 482.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.168e-05/0.3982, allocations: 39.44 kB / 483 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.3982, allocations: 11.97 kB / 483 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.3983, allocations: 38.56 kB / 483 MB, free: 15.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.3983, allocations: 0 / 483 MB, free: 15.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003048/0.3986, allocations: 105.9 kB / 483.1 MB, free: 15.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.066e-05/0.3987, allocations: 140.5 kB / 483.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.3988, allocations: 152 kB / 483.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.3989, allocations: 29.69 kB / 483.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.085e-05/0.3989, allocations: 92.14 kB / 483.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.3989, allocations: 3.906 kB / 483.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-06/0.3989, allocations: 0 / 483.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.399, allocations: 322.8 kB / 483.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.461e-05/0.3991, allocations: 19.94 kB / 483.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.878e-05/0.3992, allocations: 45.14 kB / 483.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.3993, allocations: 74.3 kB / 484 MB, free: 14.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3993, allocations: 3.938 kB / 484 MB, free: 14.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001497/0.3994, allocations: 85.55 kB / 484.1 MB, free: 14.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3995, allocations: 8.781 kB / 484.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.3995, allocations: 3.938 kB / 484.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.3995, allocations: 7.984 kB / 484.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.96e-05/0.3996, allocations: 8 kB / 484.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.3996, allocations: 4.125 kB / 484.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.157e-05/0.3997, allocations: 20.03 kB / 484.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.3997, allocations: 7.984 kB / 484.1 MB, free: 14.63 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.422e-05/0.3998, allocations: 117.8 kB / 484.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-05/0.3999, allocations: 65.53 kB / 484.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.574e-05/0.3999, allocations: 11.88 kB / 484.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.4, allocations: 7.938 kB / 484.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4, allocations: 0 / 484.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.4, allocations: 3.984 kB / 484.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001866/0.4002, allocations: 185.6 kB / 484.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.4002, allocations: 4 kB / 484.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.724e-05/0.4002, allocations: 11.98 kB / 484.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.4003, allocations: 4 kB / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.4003, allocations: 0 / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.4003, allocations: 4 kB / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4003, allocations: 0 / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.4005, allocations: 205.9 kB / 484.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.947e-05/0.4006, allocations: 101 kB / 484.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.4006, allocations: 4 kB / 484.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.664e-05/0.4007, allocations: 0 / 484.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.331e-05/0.4007, allocations: 4 kB / 484.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.738e-06/0.4007, allocations: 4 kB / 484.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.156e-05/0.4008, allocations: 115.2 kB / 484.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4008, allocations: 0 / 484.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002212/0.4011, allocations: 8 kB / 484.9 MB, free: 13.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001174/0.4012, allocations: 99.23 kB / 485 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001529/0.4013, allocations: 48.23 kB / 485.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4014, allocations: 7.938 kB / 485.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.983e-05/0.4014, allocations: 11.92 kB / 485.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.4018, allocations: 43.91 kB / 485.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004681/0.4023, allocations: 242.7 kB / 485.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.4027, allocations: 0.6926 MB / 486.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.694e-05/0.4027, allocations: 12.66 kB / 486.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.173e-05/0.4028, allocations: 11.44 kB / 486.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4028, allocations: 0 / 486.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of Templates: time 0.003095/0.4059, allocations: 0.7473 MB / 486.9 MB, free: 11.72 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time