Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001201/0.001202, allocations: 182.3 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.6/1.6, allocations: 205.2 MB / 219 MB, free: 9.203 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.0009567/0.0009562, allocations: 96.95 kB / 267.1 MB, free: 9.277 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.09247/0.09247, allocations: 12.59 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.883e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 50.37 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3833/0.4861, allocations: 78.24 MB / 0.5026 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.4865, allocations: 79.91 kB / 0.5026 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003553/0.49, allocations: 1.44 MB / 0.504 GB, free: 11.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4901, allocations: 0 / 0.504 GB, free: 11.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.4901, allocations: 3.844 kB / 0.504 GB, free: 11.54 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003061/0.4904, allocations: 345.4 kB / 0.5044 GB, free: 11.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.4904, allocations: 11.53 kB / 0.5044 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.4905, allocations: 18.64 kB / 0.5044 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.4907, allocations: 195 kB / 0.5046 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.4907, allocations: 3.984 kB / 0.5046 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.4907, allocations: 3.906 kB / 0.5046 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/0.491, allocations: 114.9 kB / 0.5047 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.491, allocations: 4 kB / 0.5047 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.491, allocations: 0 / 0.5047 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.491, allocations: 0 / 0.5047 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.1e-05/0.491, allocations: 15.31 kB / 0.5047 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003271/0.4914, allocations: 277.6 kB / 0.505 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.397e-05/0.4915, allocations: 67.95 kB / 0.505 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.956e-05/0.4915, allocations: 34.72 kB / 0.5051 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.4915, allocations: 3.938 kB / 0.5051 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.4916, allocations: 38.5 kB / 0.5051 GB, free: 10.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.342e-06/0.4916, allocations: 0 / 0.5051 GB, free: 10.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001641/0.4917, allocations: 62.66 kB / 0.5052 GB, free: 10.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.4918, allocations: 109.9 kB / 0.5053 GB, free: 10.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.4919, allocations: 125.1 kB / 0.5054 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.4919, allocations: 29.14 kB / 0.5054 GB, free: 10.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.878e-05/0.492, allocations: 94.81 kB / 0.5055 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.492, allocations: 3.938 kB / 0.5055 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-06/0.492, allocations: 0 / 0.5055 GB, free: 10.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.195e-05/0.492, allocations: 325.4 kB / 0.5058 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.48e-05/0.4921, allocations: 2.25 kB / 0.5058 GB, free: 9.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.213e-05/0.4921, allocations: 30.94 kB / 0.5059 GB, free: 9.719 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.404e-05/0.4921, allocations: 11.75 kB / 0.5059 GB, free: 9.711 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4921, allocations: 0 / 0.5059 GB, free: 9.711 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.427e-05/0.4922, allocations: 65.98 kB / 0.5059 GB, free: 9.672 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.4922, allocations: 7.688 kB / 0.506 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.4922, allocations: 0 / 0.506 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.4923, allocations: 0 / 0.506 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.863e-05/0.4923, allocations: 15 kB / 0.506 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.4924, allocations: 3.844 kB / 0.506 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.836e-05/0.4924, allocations: 3.844 kB / 0.506 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.4924, allocations: 0 / 0.506 GB, free: 9.668 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.277e-05/0.4925, allocations: 124.1 kB / 0.5061 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.463e-05/0.4925, allocations: 48.12 kB / 0.5061 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.361e-05/0.4926, allocations: 7.531 kB / 0.5061 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4926, allocations: 3.969 kB / 0.5061 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.4926, allocations: 4.062 kB / 0.5062 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.4926, allocations: 3.094 kB / 0.5062 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001387/0.4928, allocations: 172.6 kB / 0.5063 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4928, allocations: 0 / 0.5063 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-05/0.4928, allocations: 14.66 kB / 0.5063 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.4928, allocations: 3.812 kB / 0.5063 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.4929, allocations: 0 / 0.5063 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4929, allocations: 3.328 kB / 0.5063 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4929, allocations: 0 / 0.5063 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00015/0.493, allocations: 194.7 kB / 0.5065 GB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/0.4931, allocations: 93.97 kB / 0.5066 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.4931, allocations: 0 / 0.5066 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.957e-05/0.4932, allocations: 3.875 kB / 0.5066 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.4932, allocations: 11.81 kB / 0.5066 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-06/0.4932, allocations: 7.344 kB / 0.5066 GB, free: 9.016 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.845e-05/0.4933, allocations: 111.6 kB / 0.5067 GB, free: 8.938 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.733e-06/0.4933, allocations: 0 / 0.5067 GB, free: 8.938 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002/0.4935, allocations: 15.09 kB / 0.5068 GB, free: 8.934 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.000109/0.4936, allocations: 90.94 kB / 0.5068 GB, free: 8.844 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.4938, allocations: 19.25 kB / 0.5069 GB, free: 8.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.4938, allocations: 8.094 kB / 0.5069 GB, free: 8.836 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.698e-05/0.4938, allocations: 6.922 kB / 0.5069 GB, free: 8.836 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.4941, allocations: 26.27 kB / 0.5069 GB, free: 8.832 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003141/0.4944, allocations: 110.4 kB / 0.507 GB, free: 8.738 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001731/0.4946, allocations: 0.697 MB / 0.5077 GB, free: 8.043 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.405e-05/0.4946, allocations: 4.438 kB / 0.5077 GB, free: 8.035 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.688e-05/0.4947, allocations: 11.28 kB / 0.5077 GB, free: 8.031 MB / 330.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4947, allocations: 0 / 0.5077 GB, free: 8.031 MB / 330.7 MB Notification: Performance of Templates: time 0.002431/0.4971, allocations: 0.5765 MB / 0.5083 GB, free: 7.957 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,shiftSample1.y Variables in the result: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