Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009684/0.0009684, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008689/0.0008691, allocations: 95.88 kB / 286.7 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.473e-05/2.484e-05, allocations: 4 kB / 343.7 MB, free: 8.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09689/0.09693, allocations: 51.48 MB / 395.2 MB, free: 4.699 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3296/0.4266, allocations: 77.31 MB / 472.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002003/0.4269, allocations: 80.22 kB / 472.6 MB, free: 14.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004442/0.4313, allocations: 1.724 MB / 474.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4314, allocations: 0 / 474.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.4314, allocations: 8 kB / 474.3 MB, free: 13.03 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.0002728/0.4317, allocations: 358.7 kB / 474.7 MB, free: 12.65 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.4317, allocations: 8.734 kB / 474.7 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.4318, allocations: 30.89 kB / 474.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.432, allocations: 200.6 kB / 474.9 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.689e-06/0.432, allocations: 0.8594 kB / 474.9 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.4321, allocations: 8.656 kB / 474.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.636e-05/0.4321, allocations: 28.28 kB / 474.9 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.4323, allocations: 117.2 kB / 475 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.4323, allocations: 3.938 kB / 475 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.4324, allocations: 0 / 475 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.4324, allocations: 0 / 475 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002822/0.4327, allocations: 266.1 kB / 475.3 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.867e-05/0.4327, allocations: 90.84 kB / 475.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.939e-05/0.4328, allocations: 38.61 kB / 475.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.4328, allocations: 0.7969 kB / 475.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.4328, allocations: 46.27 kB / 475.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.173e-06/0.4328, allocations: 0 / 475.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001638/0.433, allocations: 68.73 kB / 475.5 MB, free: 11.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.4331, allocations: 129.7 kB / 475.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.511e-05/0.4332, allocations: 127.8 kB / 475.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.298e-06/0.4332, allocations: 33.83 kB / 475.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.66e-05/0.4332, allocations: 91.84 kB / 475.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.4332, allocations: 12.66 kB / 475.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.4332, allocations: 0 / 475.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.266e-05/0.4333, allocations: 317.4 kB / 476.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.441e-05/0.4333, allocations: 4 kB / 476.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.704e-05/0.4333, allocations: 50.23 kB / 476.3 MB, free: 10.92 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.458e-05/0.4334, allocations: 10.3 kB / 476.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-06/0.4334, allocations: 0 / 476.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.399e-05/0.4335, allocations: 72.56 kB / 476.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.4335, allocations: 9.672 kB / 476.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.4335, allocations: 4 kB / 476.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.4335, allocations: 0 / 476.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.937e-05/0.4336, allocations: 13.69 kB / 476.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.4336, allocations: 5.172 kB / 476.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.473e-05/0.4337, allocations: 4 kB / 476.4 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.4337, allocations: 1.266 kB / 476.4 MB, free: 10.81 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 4.285e-05/0.4337, allocations: 105 kB / 476.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.094e-05/0.4338, allocations: 75.86 kB / 476.6 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.938e-05/0.4338, allocations: 9.188 kB / 476.6 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4339, allocations: 4 kB / 476.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.4339, allocations: 3.938 kB / 476.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.4339, allocations: 4 kB / 476.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.434, allocations: 151.9 kB / 476.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.434, allocations: 4 kB / 476.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-05/0.4341, allocations: 14.7 kB / 476.8 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.4341, allocations: 4.094 kB / 476.8 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.4341, allocations: 8.688 kB / 476.8 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.4341, allocations: 7.953 kB / 476.8 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4341, allocations: 0 / 476.8 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001158/0.4342, allocations: 225.2 kB / 477 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.4343, allocations: 94.27 kB / 477.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.4343, allocations: 0 / 477.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.212e-05/0.4344, allocations: 9.25 kB / 477.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.4344, allocations: 3.375 kB / 477.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.4344, allocations: 5.594 kB / 477.1 MB, free: 10.06 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.863e-05/0.4345, allocations: 107.7 kB / 477.2 MB, free: 9.969 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4345, allocations: 4 kB / 477.2 MB, free: 9.965 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002238/0.4347, allocations: 8 kB / 477.2 MB, free: 9.957 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 9.041e-05/0.4348, allocations: 98.69 kB / 477.3 MB, free: 9.855 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.861e-05/0.4349, allocations: 29.7 kB / 477.4 MB, free: 9.832 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4349, allocations: 0 / 477.4 MB, free: 9.832 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.441e-05/0.4349, allocations: 3.312 kB / 477.4 MB, free: 9.832 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.4352, allocations: 40.83 kB / 477.4 MB, free: 9.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002333/0.4355, allocations: 126 kB / 477.5 MB, free: 9.676 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/0.4356, allocations: 0.7013 MB / 478.2 MB, free: 8.961 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.587e-05/0.4356, allocations: 6.312 kB / 478.2 MB, free: 8.957 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.946e-05/0.4357, allocations: 7.438 kB / 478.2 MB, free: 8.949 MB / 346.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4357, allocations: 8 kB / 478.3 MB, free: 8.941 MB / 346.7 MB Notification: Performance of Templates: time 0.002354/0.438, allocations: 0.7016 MB / 479 MB, free: 8.562 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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