Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001891/0.001891, 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.651/1.651, 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.001119/0.001119, allocations: 90.59 kB / 267.1 MB, free: 9.273 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.113/0.113, allocations: 12.58 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.076e-05/3.079e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09382/0.09387, allocations: 50.37 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3711/0.465, allocations: 78.23 MB / 0.5025 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.4652, allocations: 78.94 kB / 0.5026 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003675/0.4689, allocations: 1.447 MB / 0.504 GB, free: 11.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4689, allocations: 0 / 0.504 GB, free: 11.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.469, allocations: 0 / 0.504 GB, free: 11.5 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.0003187/0.4693, allocations: 345 kB / 0.5044 GB, free: 11.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4694, allocations: 11.75 kB / 0.5044 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.215e-05/0.4694, allocations: 11.78 kB / 0.5044 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.4696, allocations: 198.8 kB / 0.5046 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.935e-06/0.4696, allocations: 0 / 0.5046 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.4696, allocations: 7.719 kB / 0.5046 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.4698, allocations: 94.75 kB / 0.5047 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.4699, allocations: 4 kB / 0.5047 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.4699, allocations: 4 kB / 0.5047 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4699, allocations: 0 / 0.5047 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.442e-05/0.4699, allocations: 14.84 kB / 0.5047 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003202/0.4703, allocations: 272.6 kB / 0.5049 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.483e-05/0.4703, allocations: 38.22 kB / 0.505 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.253e-05/0.4703, allocations: 21.06 kB / 0.505 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.4704, allocations: 3.938 kB / 0.505 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.349e-05/0.4704, allocations: 34.41 kB / 0.505 GB, free: 10.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.4704, allocations: 0 / 0.505 GB, free: 10.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001502/0.4705, allocations: 51.36 kB / 0.5051 GB, free: 10.42 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.4706, allocations: 87.05 kB / 0.5052 GB, free: 10.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.079e-05/0.4707, allocations: 131.2 kB / 0.5053 GB, free: 10.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.916e-06/0.4707, allocations: 25.7 kB / 0.5053 GB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.53e-05/0.4707, allocations: 84.08 kB / 0.5054 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.4707, allocations: 2.859 kB / 0.5054 GB, free: 10.12 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-06/0.4708, allocations: 3.938 kB / 0.5054 GB, free: 10.12 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.174e-05/0.4708, allocations: 321.7 kB / 0.5057 GB, free: 9.801 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.386e-05/0.4708, allocations: 7.969 kB / 0.5057 GB, free: 9.797 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.575e-05/0.4709, allocations: 15.47 kB / 0.5057 GB, free: 9.781 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.862e-05/0.4709, allocations: 3.844 kB / 0.5057 GB, free: 9.781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4709, allocations: 0 / 0.5057 GB, free: 9.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.217e-05/0.471, allocations: 51.69 kB / 0.5058 GB, free: 9.742 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.471, allocations: 7.844 kB / 0.5058 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.471, allocations: 128 / 0.5058 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.471, allocations: 4 kB / 0.5058 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.872e-05/0.4711, allocations: 6.609 kB / 0.5058 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.4711, allocations: 3.844 kB / 0.5058 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.478e-05/0.4711, allocations: 0 / 0.5058 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.4711, allocations: 3.844 kB / 0.5058 GB, free: 9.738 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.191e-05/0.4712, allocations: 111.3 kB / 0.5059 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.89e-05/0.4712, allocations: 43.47 kB / 0.506 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.007e-05/0.4713, allocations: 14.78 kB / 0.506 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.4713, allocations: 0 / 0.506 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.4713, allocations: 2.484 kB / 0.506 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4713, allocations: 3.875 kB / 0.506 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.4714, allocations: 168.8 kB / 0.5061 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4714, allocations: 3.984 kB / 0.5061 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.125e-05/0.4715, allocations: 7.812 kB / 0.5062 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4715, allocations: 0 / 0.5062 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.4715, allocations: 3.094 kB / 0.5062 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.4715, allocations: 0.625 kB / 0.5062 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.4715, allocations: 0 / 0.5062 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001173/0.4717, allocations: 173.8 kB / 0.5063 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.272e-05/0.4717, allocations: 84.12 kB / 0.5064 GB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.4717, allocations: 0 / 0.5064 GB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.391e-05/0.4718, allocations: 6.875 kB / 0.5064 GB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.4719, allocations: 6.656 kB / 0.5064 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.4719, allocations: 3.656 kB / 0.5064 GB, free: 9.121 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.704e-05/0.4719, allocations: 108.9 kB / 0.5065 GB, free: 9.043 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4719, allocations: 0 / 0.5065 GB, free: 9.043 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002338/0.4722, allocations: 15.2 kB / 0.5065 GB, free: 9.035 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.765e-05/0.4723, allocations: 97.22 kB / 0.5066 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.514e-05/0.4723, allocations: 15.59 kB / 0.5066 GB, free: 8.938 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4724, allocations: 0 / 0.5066 GB, free: 8.938 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.408e-05/0.4724, allocations: 7.969 kB / 0.5067 GB, free: 8.934 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.4726, allocations: 14.14 kB / 0.5067 GB, free: 8.934 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002246/0.4729, allocations: 103.1 kB / 0.5068 GB, free: 8.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.473, allocations: 0.6911 MB / 0.5074 GB, free: 8.145 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.074e-05/0.473, allocations: 7.844 kB / 0.5074 GB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.225e-05/0.4731, allocations: 11.59 kB / 0.5075 GB, free: 8.133 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4731, allocations: 0 / 0.5075 GB, free: 8.133 MB / 330.7 MB Notification: Performance of Templates: time 0.002296/0.4754, allocations: 0.5202 MB / 0.508 GB, free: 8.062 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,Time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample.resolution,shiftSample.shiftCounter,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time