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.001459/0.001459, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 221.5 MB / 230.3 MB, free: 7.547 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008586/0.0008584, allocations: 110.3 kB / 281.2 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.054e-05/2.052e-05, allocations: 4 kB / 337.1 MB, free: 10 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.09892, allocations: 50.42 MB / 387.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2927/0.3917, allocations: 76.5 MB / 464 MB, free: 2.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.3919, allocations: 77.61 kB / 464 MB, free: 2.246 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004167/0.3961, allocations: 1.624 MB / 465.7 MB, free: 0.625 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3961, allocations: 0 / 465.7 MB, free: 0.625 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.3962, allocations: 0 / 465.7 MB, free: 0.625 MB / 330.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.0003251/0.3965, allocations: 362.9 kB / 466 MB, free: 232 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3965, allocations: 12.03 kB / 466 MB, free: 220 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.311e-05/0.3966, allocations: 11.86 kB / 466.1 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.3968, allocations: 202.8 kB / 466.2 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.3968, allocations: 8 kB / 466.3 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.3969, allocations: 4 kB / 466.3 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.016e-05/0.3969, allocations: 16 kB / 466.3 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/0.3972, allocations: 118.7 kB / 466.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3972, allocations: 3.984 kB / 466.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.3972, allocations: 7.953 kB / 466.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.3972, allocations: 7.938 kB / 466.4 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003259/0.3975, allocations: 264.1 kB / 466.7 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.417e-05/0.3976, allocations: 86.44 kB / 466.8 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.61e-05/0.3977, allocations: 35.44 kB / 466.8 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.3977, allocations: 15.92 kB / 466.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.3978, allocations: 34.56 kB / 466.8 MB, free: 15.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.3978, allocations: 0 / 466.8 MB, free: 15.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001704/0.3979, allocations: 77.47 kB / 466.9 MB, free: 15.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.972e-05/0.398, allocations: 136.6 kB / 467 MB, free: 15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.3981, allocations: 131.1 kB / 467.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.3982, allocations: 25.7 kB / 467.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.684e-05/0.3982, allocations: 96.31 kB / 467.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.322e-05/0.3982, allocations: 3.906 kB / 467.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/0.3982, allocations: 0 / 467.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.835e-05/0.3983, allocations: 318.8 kB / 467.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.371e-05/0.3984, allocations: 4 kB / 467.6 MB, free: 14.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.602e-05/0.3984, allocations: 45.16 kB / 467.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.431e-05/0.3984, allocations: 8 kB / 467.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3984, allocations: 4 kB / 467.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001003/0.3985, allocations: 69.47 kB / 467.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.3986, allocations: 8 kB / 467.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3986, allocations: 3.984 kB / 467.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3986, allocations: 4 kB / 467.8 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.194e-05/0.3987, allocations: 12 kB / 467.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3987, allocations: 3.953 kB / 467.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.947e-05/0.3988, allocations: 7.984 kB / 467.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.3988, allocations: 7.938 kB / 467.8 MB, free: 14.21 MB / 346.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 () * 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 5.81e-05/0.3988, allocations: 113.1 kB / 467.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.288e-05/0.3989, allocations: 61.53 kB / 468 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.399, allocations: 11.97 kB / 468 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.399, allocations: 0 / 468 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.399, allocations: 4 kB / 468 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.399, allocations: 3.953 kB / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.3991, allocations: 154.2 kB / 468.1 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3992, allocations: 0 / 468.1 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.599e-05/0.3992, allocations: 20.03 kB / 468.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.3992, allocations: 3.984 kB / 468.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.3993, allocations: 4 kB / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3993, allocations: 0 / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3993, allocations: 0 / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.3994, allocations: 224.4 kB / 468.4 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.3995, allocations: 96.91 kB / 468.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.3995, allocations: 3.953 kB / 468.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.322e-05/0.3996, allocations: 7.984 kB / 468.5 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.941e-05/0.3996, allocations: 4 kB / 468.5 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.3997, allocations: 4 kB / 468.5 MB, free: 13.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.257e-05/0.3997, allocations: 118.7 kB / 468.6 MB, free: 13.28 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3997, allocations: 0 / 468.6 MB, free: 13.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000217/0.4, allocations: 8 kB / 468.6 MB, free: 13.27 MB / 346.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 () * 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.000124/0.4001, allocations: 95.25 kB / 468.7 MB, free: 13.17 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.62e-05/0.4002, allocations: 31.92 kB / 468.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.4002, allocations: 0 / 468.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.455e-05/0.4002, allocations: 7.938 kB / 468.7 MB, free: 13.13 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.4005, allocations: 36.47 kB / 468.8 MB, free: 13.1 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002466/0.4007, allocations: 118.7 kB / 468.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.401, allocations: 0.704 MB / 469.6 MB, free: 12.22 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.495e-05/0.4011, allocations: 12.88 kB / 469.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.727e-05/0.4011, allocations: 19.44 kB / 469.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4011, allocations: 0 / 469.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of Templates: time 0.002587/0.4037, allocations: 0.6917 MB / 470.3 MB, free: 11.51 MB / 346.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/jenkins/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