Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001602/0.001602, allocations: 200.1 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.575/1.575, allocations: 226.5 MB / 245.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009016/0.0009014, allocations: 102.3 kB / 297.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003574, allocations: 4 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2778, allocations: 51.29 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.3811, allocations: 77.82 MB / 487.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/0.3815, allocations: 75.95 kB / 487.3 MB, free: 13.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004846/0.3864, allocations: 1.609 MB / 488.9 MB, free: 12 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3864, allocations: 0 / 488.9 MB, free: 12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.3864, allocations: 4 kB / 488.9 MB, free: 12 MB / 362.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.0004351/0.3869, allocations: 372.8 kB / 489.2 MB, free: 11.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.3869, allocations: 8.031 kB / 489.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001591/0.3871, allocations: 28.83 kB / 489.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.3873, allocations: 198.5 kB / 489.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.3873, allocations: 4.375 kB / 489.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.3874, allocations: 384 / 489.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.3877, allocations: 126.4 kB / 489.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.3877, allocations: 192 / 489.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.3877, allocations: 11.88 kB / 489.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.3877, allocations: 0 / 489.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.744e-05/0.3878, allocations: 27.92 kB / 489.6 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004268/0.3883, allocations: 278.7 kB / 489.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.3884, allocations: 75.72 kB / 490 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.602e-05/0.3885, allocations: 34.64 kB / 490 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.3885, allocations: 0 / 490 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.3885, allocations: 38.55 kB / 490.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 9.31e-07/0.3885, allocations: 0 / 490.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002911/0.3888, allocations: 93.64 kB / 490.2 MB, free: 10.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/0.3889, allocations: 106.8 kB / 490.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.3891, allocations: 141.8 kB / 490.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.3891, allocations: 25.7 kB / 490.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.395e-05/0.3891, allocations: 84.14 kB / 490.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.748e-05/0.3892, allocations: 8 kB / 490.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-06/0.3892, allocations: 192 / 490.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.3893, allocations: 318.8 kB / 490.8 MB, free: 9.789 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.302e-05/0.3893, allocations: 12 kB / 490.8 MB, free: 9.777 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.357e-05/0.3894, allocations: 39.36 kB / 490.9 MB, free: 9.727 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.329e-05/0.3895, allocations: 51.42 kB / 490.9 MB, free: 9.664 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3895, allocations: 0 / 490.9 MB, free: 9.664 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001493/0.3897, allocations: 81.42 kB / 491 MB, free: 9.578 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3897, allocations: 11.94 kB / 491 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3897, allocations: 0 / 491 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3897, allocations: 0 / 491 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.202e-05/0.3898, allocations: 8 kB / 491 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.3898, allocations: 4 kB / 491 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.396e-05/0.3899, allocations: 15.92 kB / 491 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-06/0.3899, allocations: 0 / 491 MB, free: 9.539 MB / 362.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 () * 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.701e-05/0.39, allocations: 127.1 kB / 491.2 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.052e-05/0.3901, allocations: 53.53 kB / 491.2 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.708e-05/0.3901, allocations: 11.88 kB / 491.2 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.3901, allocations: 0 / 491.2 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3901, allocations: 0 / 491.2 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.3902, allocations: 4.094 kB / 491.2 MB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.3903, allocations: 173.6 kB / 491.4 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.3903, allocations: 7.984 kB / 491.4 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-05/0.3904, allocations: 8 kB / 491.4 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3904, allocations: 4.062 kB / 491.4 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.3904, allocations: 3.938 kB / 491.4 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3904, allocations: 3.984 kB / 491.4 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3904, allocations: 4 kB / 491.4 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001819/0.3906, allocations: 185 kB / 491.6 MB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.3907, allocations: 93 kB / 491.7 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.3907, allocations: 0 / 491.7 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.425e-05/0.3908, allocations: 4 kB / 491.7 MB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.52e-05/0.3908, allocations: 4 kB / 491.7 MB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.3909, allocations: 8 kB / 491.7 MB, free: 8.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.159e-05/0.3909, allocations: 110.3 kB / 491.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3909, allocations: 0 / 491.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002264/0.3912, allocations: 8 kB / 491.8 MB, free: 8.637 MB / 362.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 () * 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.0001349/0.3913, allocations: 103.2 kB / 491.9 MB, free: 8.523 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.3915, allocations: 39.91 kB / 492 MB, free: 8.484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3915, allocations: 0 / 492 MB, free: 8.484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.743e-05/0.3915, allocations: 12 kB / 492 MB, free: 8.473 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.3919, allocations: 32.27 kB / 492 MB, free: 8.441 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003856/0.3923, allocations: 210.4 kB / 492.2 MB, free: 8.199 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.3925, allocations: 0.6928 MB / 492.9 MB, free: 7.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.967e-05/0.3926, allocations: 7.75 kB / 492.9 MB, free: 7.473 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.204e-05/0.3926, allocations: 7.438 kB / 492.9 MB, free: 7.465 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3926, allocations: 0 / 492.9 MB, free: 7.465 MB / 362.7 MB Notification: Performance of Templates: time 0.002666/0.3953, allocations: 0.5797 MB / 493.5 MB, free: 6.906 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_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