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.0009143/0.0009145, allocations: 91.77 kB / 16.31 MB, free: 5.996 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.001049/0.001049, allocations: 183.3 kB / 17.21 MB, free: 5.902 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.5/1.5, allocations: 223.2 MB / 241.2 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003224, allocations: 6.312 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1246, allocations: 50.42 MB / 351.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.002015/0.1267, allocations: 1.31 MB / 352.5 MB, free: 10.42 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.1278, allocations: 499.1 kB / 353 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.128, allocations: 7.938 kB / 353 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.909e-05/0.128, allocations: 0 / 353 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001457/0.1282, allocations: 19.84 kB / 353.1 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003099/0.1285, allocations: 55.77 kB / 353.1 MB, free: 9.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.1286, allocations: 51.78 kB / 353.2 MB, free: 9.797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.1287, allocations: 20.27 kB / 353.2 MB, free: 9.777 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.925e-05/0.1288, allocations: 27.86 kB / 353.2 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.257e-05/0.1289, allocations: 19.86 kB / 353.2 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.1289, allocations: 0 / 353.2 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.547e-05/0.1289, allocations: 4 kB / 353.2 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.53e-05/0.129, allocations: 15.92 kB / 353.3 MB, free: 9.711 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.322e-05/0.129, allocations: 37.64 kB / 353.3 MB, free: 9.668 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.859e-05/0.1291, allocations: 51.84 kB / 353.3 MB, free: 9.617 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1291, allocations: 0 / 353.3 MB, free: 9.617 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1291, allocations: 0 / 353.3 MB, free: 9.617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.1291, allocations: 0 / 353.3 MB, free: 9.617 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.0005357/0.1297, allocations: 374.9 kB / 353.7 MB, free: 9.203 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.1297, allocations: 8.031 kB / 353.7 MB, free: 9.195 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.861e-05/0.1298, allocations: 11.86 kB / 353.7 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000251/0.13, allocations: 202.8 kB / 353.9 MB, free: 8.945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.1301, allocations: 4 kB / 353.9 MB, free: 8.941 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.1301, allocations: 8 kB / 353.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.1304, allocations: 134.7 kB / 354.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1304, allocations: 0 / 354.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/0.1305, allocations: 4 kB / 354.1 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.1305, allocations: 11.98 kB / 354.1 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.757e-05/0.1306, allocations: 31.88 kB / 354.1 MB, free: 8.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004496/0.131, allocations: 283.5 kB / 354.4 MB, free: 8.395 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.1312, allocations: 94.42 kB / 354.5 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.057e-05/0.1313, allocations: 51.42 kB / 354.5 MB, free: 8.203 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.1314, allocations: 0 / 354.5 MB, free: 8.203 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.1314, allocations: 38.56 kB / 354.6 MB, free: 8.156 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.1314, allocations: 0 / 354.6 MB, free: 8.156 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003244/0.1317, allocations: 109.7 kB / 354.7 MB, free: 8.043 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.021e-05/0.1318, allocations: 136.5 kB / 354.8 MB, free: 7.879 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.132, allocations: 153.3 kB / 355 MB, free: 7.719 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.132, allocations: 25.7 kB / 355 MB, free: 7.688 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.728e-05/0.1321, allocations: 96.55 kB / 355.1 MB, free: 7.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.1321, allocations: 11.84 kB / 355.1 MB, free: 7.578 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-06/0.1321, allocations: 0 / 355.1 MB, free: 7.578 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1323, allocations: 326.8 kB / 355.4 MB, free: 7.25 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.553e-05/0.1323, allocations: 11.98 kB / 355.4 MB, free: 7.238 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.266e-05/0.1324, allocations: 49.16 kB / 355.5 MB, free: 7.172 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.452e-05/0.1325, allocations: 19.98 kB / 355.5 MB, free: 7.152 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1325, allocations: 0 / 355.5 MB, free: 7.152 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001547/0.1326, allocations: 89.45 kB / 355.6 MB, free: 7.059 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.1327, allocations: 11.94 kB / 355.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.1327, allocations: 0 / 355.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.1327, allocations: 7.953 kB / 355.6 MB, free: 7.039 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.658e-05/0.1328, allocations: 19.92 kB / 355.6 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.1328, allocations: 0 / 355.6 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.937e-05/0.1329, allocations: 8 kB / 355.6 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.1329, allocations: 8.188 kB / 355.6 MB, free: 7.004 MB / 286.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 0.000106/0.133, allocations: 117.8 kB / 355.7 MB, free: 6.879 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.704e-05/0.1331, allocations: 61.55 kB / 355.8 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.101e-05/0.1331, allocations: 15.86 kB / 355.8 MB, free: 6.793 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1332, allocations: 4 kB / 355.8 MB, free: 6.789 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.1332, allocations: 3.953 kB / 355.8 MB, free: 6.785 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1332, allocations: 4 kB / 355.8 MB, free: 6.781 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.1334, allocations: 173.6 kB / 356 MB, free: 6.562 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1334, allocations: 4.219 kB / 356 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-05/0.1335, allocations: 23.92 kB / 356 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1335, allocations: 0 / 356 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.1335, allocations: 8 kB / 356 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1335, allocations: 0 / 356 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1335, allocations: 0 / 356 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002394/0.1337, allocations: 202 kB / 356.2 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-05/0.1338, allocations: 96.91 kB / 356.3 MB, free: 6.191 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.1339, allocations: 4 kB / 356.3 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.636e-05/0.134, allocations: 11.98 kB / 356.3 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.134, allocations: 3.938 kB / 356.4 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.134, allocations: 7.938 kB / 356.4 MB, free: 6.164 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.966e-05/0.1341, allocations: 119.2 kB / 356.5 MB, free: 6.047 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1341, allocations: 0 / 356.5 MB, free: 6.047 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002315/0.1343, allocations: 4 kB / 356.5 MB, free: 6.043 MB / 286.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.0001524/0.1345, allocations: 107.2 kB / 356.6 MB, free: 5.93 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001661/0.1347, allocations: 52.22 kB / 356.6 MB, free: 5.879 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1347, allocations: 0 / 356.6 MB, free: 5.879 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.506e-05/0.1347, allocations: 8 kB / 356.6 MB, free: 5.871 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.1352, allocations: 35.97 kB / 356.7 MB, free: 5.836 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004349/0.1356, allocations: 228 kB / 356.9 MB, free: 5.574 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.136, allocations: 0.6965 MB / 357.6 MB, free: 4.852 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.712e-05/0.136, allocations: 8.609 kB / 357.6 MB, free: 4.844 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.996e-05/0.136, allocations: 15.44 kB / 357.6 MB, free: 4.828 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.136, allocations: 0 / 357.6 MB, free: 4.828 MB / 286.1 MB Notification: Performance of Templates: time 0.003719/0.1398, allocations: 0.7402 MB / 358.4 MB, free: 4.102 MB / 286.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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