Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00149/0.00149, allocations: 181.7 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.2 MB / 219 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008115/0.0008116, allocations: 93.48 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08881/0.08881, allocations: 12.59 MB / 327.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.173e-05/4.194e-05, allocations: 8 kB / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1194, allocations: 50.38 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4116/0.531, allocations: 78.35 MB / 0.5027 GB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.5313, allocations: 82.31 kB / 0.5027 GB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003714/0.535, allocations: 1.555 MB / 0.5043 GB, free: 11.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.535, allocations: 0 / 0.5043 GB, free: 11.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.5351, allocations: 3.906 kB / 0.5043 GB, free: 11.41 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.0002893/0.5354, allocations: 367.6 kB / 0.5046 GB, free: 11.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.5354, allocations: 7.719 kB / 0.5046 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.224e-05/0.5354, allocations: 11.5 kB / 0.5046 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.5356, allocations: 192.7 kB / 0.5048 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.5356, allocations: 7.766 kB / 0.5048 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.5357, allocations: 7.844 kB / 0.5048 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002481/0.5359, allocations: 133.8 kB / 0.505 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.5359, allocations: 3.938 kB / 0.505 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.5359, allocations: 3.875 kB / 0.505 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.536, allocations: 0 / 0.505 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.173e-05/0.536, allocations: 18.34 kB / 0.505 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003079/0.5363, allocations: 295.9 kB / 0.5053 GB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.961e-05/0.5364, allocations: 96.38 kB / 0.5054 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.954e-05/0.5365, allocations: 37.47 kB / 0.5054 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.5365, allocations: 2.531 kB / 0.5054 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.5365, allocations: 34.41 kB / 0.5054 GB, free: 10.26 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.253e-06/0.5365, allocations: 3.938 kB / 0.5054 GB, free: 10.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001627/0.5367, allocations: 76.72 kB / 0.5055 GB, free: 10.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.5367, allocations: 135.9 kB / 0.5056 GB, free: 10.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.5368, allocations: 131.9 kB / 0.5058 GB, free: 9.961 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.5369, allocations: 33.14 kB / 0.5058 GB, free: 9.926 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.832e-05/0.5369, allocations: 91.12 kB / 0.5059 GB, free: 9.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.328e-05/0.5369, allocations: 7.375 kB / 0.5059 GB, free: 9.836 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-06/0.5369, allocations: 3.844 kB / 0.5059 GB, free: 9.836 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.088e-05/0.537, allocations: 317.5 kB / 0.5062 GB, free: 9.523 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.839e-05/0.537, allocations: 11.44 kB / 0.5062 GB, free: 9.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.804e-05/0.537, allocations: 42.8 kB / 0.5062 GB, free: 9.473 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.919e-05/0.5371, allocations: 19.17 kB / 0.5063 GB, free: 9.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.5371, allocations: 0 / 0.5063 GB, free: 9.465 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.82e-05/0.5372, allocations: 77.06 kB / 0.5063 GB, free: 9.422 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.5372, allocations: 3.844 kB / 0.5063 GB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.5372, allocations: 8.156 kB / 0.5063 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.5372, allocations: 4 kB / 0.5063 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.294e-05/0.5373, allocations: 18.33 kB / 0.5064 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.5373, allocations: 3.844 kB / 0.5064 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.455e-05/0.5374, allocations: 6.516 kB / 0.5064 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.5374, allocations: 3.812 kB / 0.5064 GB, free: 9.41 MB / 330.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.737e-05/0.5374, allocations: 116.5 kB / 0.5065 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.106e-05/0.5375, allocations: 66.42 kB / 0.5066 GB, free: 9.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.46e-05/0.5376, allocations: 21.41 kB / 0.5066 GB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.5376, allocations: 0 / 0.5066 GB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.5376, allocations: 3.844 kB / 0.5066 GB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.5376, allocations: 3.938 kB / 0.5066 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.5377, allocations: 176.2 kB / 0.5067 GB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.5377, allocations: 3.953 kB / 0.5068 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.221e-05/0.5378, allocations: 14.06 kB / 0.5068 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.5378, allocations: 7.781 kB / 0.5068 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.5378, allocations: 2.344 kB / 0.5068 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.5378, allocations: 7.906 kB / 0.5068 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.5379, allocations: 3.984 kB / 0.5068 GB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001249/0.538, allocations: 225 kB / 0.507 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.219e-05/0.538, allocations: 92.25 kB / 0.5071 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.5381, allocations: 7.281 kB / 0.5071 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.971e-05/0.5381, allocations: 3.844 kB / 0.5071 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.15e-05/0.5382, allocations: 2.766 kB / 0.5071 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.5382, allocations: 7.781 kB / 0.5071 GB, free: 8.719 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.107e-05/0.5382, allocations: 116.6 kB / 0.5072 GB, free: 8.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5382, allocations: 0 / 0.5072 GB, free: 8.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002034/0.5384, allocations: 7.859 kB / 0.5072 GB, free: 8.637 MB / 330.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 7.181e-05/0.5385, allocations: 104.5 kB / 0.5073 GB, free: 8.543 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.987e-05/0.5386, allocations: 30.09 kB / 0.5074 GB, free: 8.539 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.5386, allocations: 0 / 0.5074 GB, free: 8.539 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.449e-05/0.5387, allocations: 10.03 kB / 0.5074 GB, free: 8.535 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.5389, allocations: 39.61 kB / 0.5074 GB, free: 8.527 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002331/0.5391, allocations: 131.5 kB / 0.5075 GB, free: 8.422 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.5393, allocations: 0.7045 MB / 0.5082 GB, free: 7.727 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.25e-05/0.5393, allocations: 4.484 kB / 0.5082 GB, free: 7.727 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.727e-05/0.5394, allocations: 13.31 kB / 0.5082 GB, free: 7.719 MB / 330.7 MB Notification: Performance of SimCode: time 3.3e-07/0.5394, allocations: 7.875 kB / 0.5082 GB, free: 7.711 MB / 330.7 MB Notification: Performance of Templates: time 0.002377/0.5417, allocations: 0.7522 MB / 0.509 GB, free: 7.625 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time