Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001298/0.001299, allocations: 96.53 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 201.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.687/1.687, allocations: 227.2 MB / 245.9 MB, free: 12.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002849/0.0002849, allocations: 7.984 kB / 306.6 MB, free: 1.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1515, allocations: 51.49 MB / 358.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.001819/0.1534, allocations: 1.313 MB / 359.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008354/0.1542, allocations: 0.5302 MB / 359.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.47e-05/0.1543, allocations: 0 / 359.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.12e-05/0.1544, allocations: 3.938 kB / 359.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.1545, allocations: 19.86 kB / 359.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.1548, allocations: 47.83 kB / 360 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.1549, allocations: 39.89 kB / 360 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.762e-05/0.155, allocations: 23.95 kB / 360 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.1551, allocations: 31.86 kB / 360.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.888e-05/0.1552, allocations: 19.86 kB / 360.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.006e-05/0.1552, allocations: 0 / 360.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.266e-05/0.1553, allocations: 7.984 kB / 360.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.7e-05/0.1553, allocations: 8 kB / 360.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.808e-05/0.1553, allocations: 37.64 kB / 360.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.331e-05/0.1554, allocations: 43.91 kB / 360.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.1554, allocations: 4 kB / 360.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1555, allocations: 4 kB / 360.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.473e-06/0.1555, allocations: 0 / 360.2 MB, free: 11.98 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004875/0.156, allocations: 385.7 kB / 360.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.156, allocations: 12.03 kB / 360.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.1562, allocations: 27.8 kB / 360.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.1564, allocations: 192.1 kB / 360.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.1564, allocations: 8 kB / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.1564, allocations: 3.953 kB / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.1567, allocations: 142.7 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1567, allocations: 0 / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.1567, allocations: 7.938 kB / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1568, allocations: 0 / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.735e-05/0.1568, allocations: 31.92 kB / 361 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003576/0.1572, allocations: 287.5 kB / 361.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.1574, allocations: 90.42 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.1574, allocations: 15.98 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.1574, allocations: 30.56 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.1574, allocations: 0 / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003028/0.1577, allocations: 117.9 kB / 361.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.1578, allocations: 128.5 kB / 361.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.158, allocations: 153.9 kB / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.158, allocations: 25.7 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.636e-05/0.1581, allocations: 92.23 kB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.1581, allocations: 7.984 kB / 361.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-06/0.1581, allocations: 3.938 kB / 361.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1582, allocations: 318.9 kB / 362.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.996e-05/0.1583, allocations: 19.98 kB / 362.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.294e-05/0.1584, allocations: 49.08 kB / 362.3 MB, free: 9.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.426e-05/0.1584, allocations: 20 kB / 362.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1584, allocations: 0 / 362.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001533/0.1586, allocations: 93.56 kB / 362.4 MB, free: 9.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1586, allocations: 8.031 kB / 362.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1586, allocations: 4 kB / 362.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.1587, allocations: 0 / 362.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.317e-05/0.1588, allocations: 15.98 kB / 362.4 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.1588, allocations: 3.938 kB / 362.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.874e-05/0.1588, allocations: 8 kB / 362.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.1588, allocations: 3.984 kB / 362.5 MB, free: 9.422 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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 8.921e-05/0.1589, allocations: 125.8 kB / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.076e-05/0.159, allocations: 69.48 kB / 362.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.768e-05/0.1591, allocations: 15.83 kB / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-06/0.1591, allocations: 0 / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.1591, allocations: 4 kB / 362.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1591, allocations: 3.984 kB / 362.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.1593, allocations: 173.7 kB / 362.8 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1593, allocations: 4.062 kB / 362.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.96e-05/0.1594, allocations: 19.98 kB / 362.9 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.1594, allocations: 16.03 kB / 362.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.1594, allocations: 0 / 362.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.1594, allocations: 0 / 362.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1594, allocations: 11.92 kB / 362.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002365/0.1597, allocations: 239 kB / 363.1 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.853e-05/0.1598, allocations: 93 kB / 363.2 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.1598, allocations: 4 kB / 363.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.101e-05/0.1599, allocations: 4 kB / 363.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.358e-05/0.1599, allocations: 4 kB / 363.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.1599, allocations: 0 / 363.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.679e-05/0.16, allocations: 115.2 kB / 363.3 MB, free: 8.406 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.16, allocations: 0 / 363.3 MB, free: 8.406 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002369/0.1602, allocations: 12 kB / 363.3 MB, free: 8.395 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0001145/0.1604, allocations: 103.2 kB / 363.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001574/0.1605, allocations: 48.23 kB / 363.5 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1605, allocations: 0 / 363.5 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.1e-05/0.1606, allocations: 11.98 kB / 363.5 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.161, allocations: 47.72 kB / 363.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004762/0.1615, allocations: 224 kB / 363.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.1619, allocations: 0.7004 MB / 364.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.566e-05/0.1619, allocations: 4.672 kB / 364.5 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.621e-05/0.162, allocations: 19.44 kB / 364.5 MB, free: 7.172 MB / 302.1 MB Notification: Performance of SimCode: time 2.264e-06/0.162, allocations: 0 / 364.5 MB, free: 7.172 MB / 302.1 MB Notification: Performance of Templates: time 0.003564/0.1655, allocations: 0.7327 MB / 365.2 MB, free: 6.453 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,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