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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009493/0.0009492, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 221.5 MB / 230.3 MB, free: 7.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008926/0.0008926, allocations: 88.48 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.336e-05/1.337e-05, allocations: 4 kB / 337.1 MB, free: 10 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0944/0.09443, allocations: 50.41 MB / 387.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3519/0.4464, allocations: 76.33 MB / 463.8 MB, free: 2.527 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.4467, allocations: 79.95 kB / 463.9 MB, free: 2.449 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003877/0.4506, allocations: 1.505 MB / 465.4 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4506, allocations: 0 / 465.4 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.4506, allocations: 0 / 465.4 MB, free: 0.9492 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.0003467/0.451, allocations: 351 kB / 465.7 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.451, allocations: 8.031 kB / 465.7 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.357e-05/0.4511, allocations: 15.86 kB / 465.7 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.4513, allocations: 198.8 kB / 465.9 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.4513, allocations: 0 / 465.9 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.4513, allocations: 4 kB / 465.9 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.973e-05/0.4514, allocations: 16 kB / 466 MB, free: 292 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.4516, allocations: 105.8 kB / 466.1 MB, free: 164 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.4516, allocations: 4 kB / 466.1 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.4517, allocations: 0.75 kB / 466.1 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.4517, allocations: 4 kB / 466.1 MB, free: 156 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003419/0.452, allocations: 259.2 kB / 466.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.408e-05/0.4521, allocations: 59.86 kB / 466.4 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.02e-05/0.4522, allocations: 26.64 kB / 466.4 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.4522, allocations: 3.938 kB / 466.4 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.4522, allocations: 38.52 kB / 466.5 MB, free: 15.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.4522, allocations: 0 / 466.5 MB, free: 15.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001576/0.4524, allocations: 65.47 kB / 466.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.4524, allocations: 106.8 kB / 466.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.4526, allocations: 123.2 kB / 466.7 MB, free: 15.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.4526, allocations: 25.7 kB / 466.8 MB, free: 15.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.736e-05/0.4526, allocations: 100.1 kB / 466.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.107e-05/0.4526, allocations: 0 / 466.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-06/0.4527, allocations: 0 / 466.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.4528, allocations: 322.8 kB / 467.2 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.427e-05/0.4528, allocations: 4 kB / 467.2 MB, free: 14.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.333e-05/0.4528, allocations: 23.44 kB / 467.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.472e-05/0.4528, allocations: 19.94 kB / 467.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.4529, allocations: 0 / 467.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.895e-05/0.4529, allocations: 57.53 kB / 467.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.453, allocations: 9.516 kB / 467.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.453, allocations: 0 / 467.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.453, allocations: 4 kB / 467.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.649e-05/0.4531, allocations: 11.98 kB / 467.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.4531, allocations: 128 / 467.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.249e-05/0.4531, allocations: 11.94 kB / 467.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.4531, allocations: 4 kB / 467.3 MB, free: 14.74 MB / 346.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 5.465e-05/0.4532, allocations: 101 kB / 467.4 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.807e-05/0.4533, allocations: 53.53 kB / 467.5 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.428e-05/0.4533, allocations: 15.92 kB / 467.5 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.4533, allocations: 3.984 kB / 467.5 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.4533, allocations: 4 kB / 467.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.4533, allocations: 4.062 kB / 467.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.4535, allocations: 142.2 kB / 467.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4535, allocations: 0 / 467.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-05/0.4536, allocations: 12 kB / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4536, allocations: 0 / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.4536, allocations: 3.984 kB / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4536, allocations: 0 / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4536, allocations: 7.953 kB / 467.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001319/0.4537, allocations: 188.5 kB / 467.8 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.88e-05/0.4538, allocations: 97 kB / 467.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.4538, allocations: 3.953 kB / 467.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.772e-05/0.4539, allocations: 4 kB / 467.9 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.083e-05/0.4539, allocations: 3.984 kB / 468 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.4539, allocations: 8 kB / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.936e-05/0.454, allocations: 99.78 kB / 468.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.454, allocations: 4 kB / 468.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002102/0.4542, allocations: 4 kB / 468.1 MB, free: 13.89 MB / 346.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 9.98e-05/0.4543, allocations: 99.19 kB / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.377e-05/0.4544, allocations: 23.88 kB / 468.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4544, allocations: 0 / 468.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.508e-05/0.4545, allocations: 4.25 kB / 468.2 MB, free: 13.76 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.4547, allocations: 32.88 kB / 468.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00024/0.455, allocations: 105.8 kB / 468.3 MB, free: 13.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.4552, allocations: 0.6963 MB / 469 MB, free: 12.87 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.506e-05/0.4553, allocations: 8.312 kB / 469 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.223e-05/0.4553, allocations: 7.625 kB / 469 MB, free: 12.86 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4553, allocations: 4 kB / 469 MB, free: 12.85 MB / 346.7 MB Notification: Performance of Templates: time 0.00232/0.4576, allocations: 0.5364 MB / 469.6 MB, free: 12.32 MB / 346.7 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