Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 101.5 kB / 16.31 MB, free: 5.586 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.001037/0.001038, allocations: 182.3 kB / 17.19 MB, free: 5.523 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.466/1.466, allocations: 223.2 MB / 241.1 MB, free: 14.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003735, allocations: 4 kB / 300.7 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1526, allocations: 50.42 MB / 351.1 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.001885/0.1545, allocations: 1.296 MB / 352.4 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009026/0.1554, allocations: 499 kB / 352.9 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.317e-05/0.1555, allocations: 0 / 352.9 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.434e-05/0.1556, allocations: 7.938 kB / 352.9 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.1557, allocations: 11.97 kB / 352.9 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.156, allocations: 47.83 kB / 353 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.1561, allocations: 35.91 kB / 353 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.1562, allocations: 19.97 kB / 353.1 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.102e-05/0.1563, allocations: 23.86 kB / 353.1 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.72e-05/0.1564, allocations: 19.91 kB / 353.1 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.1564, allocations: 11.94 kB / 353.1 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.369e-05/0.1564, allocations: 0 / 353.1 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.188e-05/0.1565, allocations: 8 kB / 353.1 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.308e-05/0.1565, allocations: 37.64 kB / 353.1 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.752e-05/0.1566, allocations: 43.86 kB / 353.2 MB, free: 1.691 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1566, allocations: 3.938 kB / 353.2 MB, free: 1.688 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1566, allocations: 0 / 353.2 MB, free: 1.688 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1566, allocations: 0 / 353.2 MB, free: 1.688 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007548/0.1574, allocations: 383.2 kB / 353.6 MB, free: 1.266 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.1575, allocations: 12.03 kB / 353.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.359e-05/0.1575, allocations: 11.81 kB / 353.6 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.1578, allocations: 202.8 kB / 353.8 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1578, allocations: 4 kB / 353.8 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.447e-05/0.1578, allocations: 4 kB / 353.8 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.1582, allocations: 142.7 kB / 353.9 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.1582, allocations: 0 / 353.9 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.1582, allocations: 12 kB / 354 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.1582, allocations: 3.953 kB / 354 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.121e-05/0.1583, allocations: 27.92 kB / 354 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003705/0.1587, allocations: 283.5 kB / 354.3 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.1588, allocations: 98.42 kB / 354.4 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.1589, allocations: 0 / 354.4 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.1589, allocations: 42.55 kB / 354.4 MB, free: 276 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 9.31e-07/0.1589, allocations: 0 / 354.4 MB, free: 276 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.000318/0.1592, allocations: 109.7 kB / 354.5 MB, free: 160 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.1594, allocations: 136.5 kB / 354.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.1596, allocations: 146.5 kB / 354.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.1596, allocations: 25.7 kB / 354.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.1597, allocations: 104.4 kB / 354.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.1597, allocations: 3.984 kB / 354.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-06/0.1597, allocations: 4 kB / 354.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002077/0.1599, allocations: 318.8 kB / 355.2 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.474e-05/0.16, allocations: 12 kB / 355.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.63e-05/0.16, allocations: 57.08 kB / 355.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.343e-05/0.1601, allocations: 19.98 kB / 355.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1601, allocations: 0 / 355.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002031/0.1603, allocations: 89.47 kB / 355.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1603, allocations: 10.48 kB / 355.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.1603, allocations: 0 / 355.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.1604, allocations: 7.953 kB / 355.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.345e-05/0.1605, allocations: 12 kB / 355.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1605, allocations: 3.938 kB / 355.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.05e-05/0.1605, allocations: 8.172 kB / 355.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.1606, allocations: 8 kB / 355.5 MB, free: 15.12 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 9.798e-05/0.1607, allocations: 125.7 kB / 355.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.1609, allocations: 65.53 kB / 355.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.048e-05/0.1609, allocations: 15.86 kB / 355.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.1609, allocations: 3.953 kB / 355.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.161, allocations: 0 / 355.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.161, allocations: 4 kB / 355.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.1612, allocations: 181.6 kB / 355.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1612, allocations: 4.094 kB / 355.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.645e-05/0.1612, allocations: 12 kB / 355.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1613, allocations: 0 / 355.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.1613, allocations: 4 kB / 355.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.1613, allocations: 3.984 kB / 355.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.1613, allocations: 7.891 kB / 355.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002385/0.1615, allocations: 235 kB / 356.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.967e-05/0.1616, allocations: 97 kB / 356.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.1616, allocations: 192 / 356.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.052e-05/0.1617, allocations: 16 kB / 356.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.589e-05/0.1618, allocations: 0 / 356.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.1618, allocations: 7.984 kB / 356.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.87e-05/0.1619, allocations: 113.5 kB / 356.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1619, allocations: 0 / 356.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002317/0.1621, allocations: 12 kB / 356.3 MB, free: 14.11 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.0001152/0.1622, allocations: 99.19 kB / 356.4 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001611/0.1624, allocations: 47.92 kB / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1624, allocations: 0 / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.032e-05/0.1624, allocations: 11.98 kB / 356.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.1628, allocations: 38.72 kB / 356.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000409/0.1632, allocations: 232.2 kB / 356.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.1635, allocations: 0.7043 MB / 357.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.74e-05/0.1636, allocations: 8.656 kB / 357.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.1636, allocations: 15.42 kB / 357.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1636, allocations: 0 / 357.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of Templates: time 0.003133/0.1668, allocations: 0.7272 MB / 358.2 MB, free: 12.17 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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