Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 97.95 kB / 16.3 MB, free: 5.57 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 184.2 kB / 17.2 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 223.2 MB / 241.1 MB, free: 364 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003113/0.0003113, allocations: 12 kB / 300.7 MB, free: 6.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1671/0.1674, allocations: 50.42 MB / 351.1 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002078/0.1696, allocations: 1.265 MB / 352.4 MB, free: 2.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009935/0.1706, allocations: 475.1 kB / 352.9 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.1708, allocations: 0 / 352.9 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.489e-05/0.1708, allocations: 3.938 kB / 352.9 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.171, allocations: 7.984 kB / 352.9 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003399/0.1713, allocations: 43.83 kB / 352.9 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.1715, allocations: 35.89 kB / 353 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.1716, allocations: 12.19 kB / 353 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.085e-05/0.1717, allocations: 15.92 kB / 353 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.446e-05/0.1718, allocations: 23.91 kB / 353 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.657e-05/0.1718, allocations: 0 / 353 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.861e-05/0.1718, allocations: 4 kB / 353 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.961e-05/0.1718, allocations: 7.938 kB / 353 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.795e-05/0.1719, allocations: 37.64 kB / 353.1 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.709e-05/0.172, allocations: 31.94 kB / 353.1 MB, free: 2.059 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.172, allocations: 0 / 353.1 MB, free: 2.059 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.172, allocations: 3.938 kB / 353.1 MB, free: 2.055 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.172, allocations: 4 kB / 353.1 MB, free: 2.051 MB / 286.1 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.0006231/0.1727, allocations: 379.2 kB / 353.5 MB, free: 1.633 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.1727, allocations: 12.03 kB / 353.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.632e-05/0.1728, allocations: 11.86 kB / 353.5 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/0.1731, allocations: 189.6 kB / 353.7 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.1731, allocations: 4 kB / 353.7 MB, free: 1.383 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.122e-05/0.1731, allocations: 7.938 kB / 353.7 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.1735, allocations: 113.9 kB / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.1735, allocations: 0 / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.1736, allocations: 7.953 kB / 353.8 MB, free: 1.234 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.1736, allocations: 4 kB / 353.8 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.974e-05/0.1737, allocations: 27.98 kB / 353.8 MB, free: 1.203 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.1742, allocations: 270.6 kB / 354.1 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.1743, allocations: 75.78 kB / 354.2 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.1744, allocations: 0 / 354.2 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.1744, allocations: 34.52 kB / 354.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 2.535e-06/0.1744, allocations: 0 / 354.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003168/0.1747, allocations: 101.6 kB / 354.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.103e-05/0.1748, allocations: 106.8 kB / 354.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.175, allocations: 137.8 kB / 354.6 MB, free: 368 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.175, allocations: 25.7 kB / 354.6 MB, free: 336 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.166e-05/0.1751, allocations: 96.08 kB / 354.7 MB, free: 236 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.1751, allocations: 8.078 kB / 354.7 MB, free: 228 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.976e-06/0.1751, allocations: 4 kB / 354.7 MB, free: 224 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.1753, allocations: 318.8 kB / 355 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.48e-05/0.1753, allocations: 11.98 kB / 355 MB, free: 15.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.536e-05/0.1754, allocations: 39.41 kB / 355 MB, free: 15.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.341e-05/0.1755, allocations: 15.94 kB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1755, allocations: 0 / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001378/0.1756, allocations: 81.47 kB / 355.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.1757, allocations: 8 kB / 355.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1757, allocations: 4.125 kB / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.1757, allocations: 0 / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.776e-05/0.1758, allocations: 8 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.1758, allocations: 4 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.57e-05/0.1759, allocations: 7.984 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.1759, allocations: 0 / 355.2 MB, free: 15.7 MB / 302.1 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 () * Number of clocked 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 9.416e-05/0.176, allocations: 117.8 kB / 355.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.997e-05/0.1761, allocations: 61.58 kB / 355.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.989e-05/0.1761, allocations: 11.88 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1761, allocations: 0 / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1761, allocations: 3.938 kB / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1761, allocations: 0 / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.1763, allocations: 177.6 kB / 355.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1763, allocations: 0 / 355.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.953e-05/0.1764, allocations: 11.94 kB / 355.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1764, allocations: 4 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.1764, allocations: 7.938 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1764, allocations: 0 / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-05/0.1765, allocations: 8.031 kB / 355.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/0.1767, allocations: 208.5 kB / 355.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.868e-05/0.1768, allocations: 89 kB / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.1768, allocations: 0 / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.823e-05/0.1769, allocations: 7.938 kB / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.1769, allocations: 0 / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-06/0.1769, allocations: 11.94 kB / 355.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.041e-05/0.177, allocations: 109.8 kB / 356 MB, free: 14.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.177, allocations: 0 / 356 MB, free: 14.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.1773, allocations: 8 kB / 356 MB, free: 14.76 MB / 302.1 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 () * Number of clocked 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.0001246/0.1774, allocations: 99.25 kB / 356.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001576/0.1776, allocations: 35.91 kB / 356.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1776, allocations: 0 / 356.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.652e-05/0.1776, allocations: 12 kB / 356.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.178, allocations: 32.47 kB / 356.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003762/0.1784, allocations: 202.5 kB / 356.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.1787, allocations: 0.7005 MB / 357.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.148e-05/0.1788, allocations: 4.172 kB / 357.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.997e-05/0.1788, allocations: 11.44 kB / 357.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1788, allocations: 0 / 357.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of Templates: time 0.002929/0.1817, allocations: 0.5675 MB / 357.6 MB, free: 13.05 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result: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