Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00134/0.00134, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001305, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.482/1.482, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002092, allocations: 72.52 kB / 307.9 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1219, allocations: 50.55 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003791/0.1257, allocations: 1.618 MB / 360.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.1269, allocations: 0.5804 MB / 360.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.341e-05/0.127, allocations: 0 / 360.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.701e-05/0.1271, allocations: 7.875 kB / 360.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.1272, allocations: 15.86 kB / 360.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003251/0.1276, allocations: 71.8 kB / 360.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.1277, allocations: 51.8 kB / 360.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.1278, allocations: 36.14 kB / 360.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.128, allocations: 27.91 kB / 360.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.249e-05/0.128, allocations: 27.86 kB / 360.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.063e-05/0.1281, allocations: 7.938 kB / 360.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.759e-05/0.1281, allocations: 7.938 kB / 360.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.542e-05/0.1282, allocations: 15.92 kB / 360.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.812e-05/0.1282, allocations: 31.75 kB / 360.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.1284, allocations: 71.72 kB / 361 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1284, allocations: 0 / 361 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1284, allocations: 0 / 361 MB, free: 11.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1284, allocations: 0 / 361 MB, free: 11.34 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.0005553/0.129, allocations: 403.3 kB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1291, allocations: 8.031 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.1292, allocations: 24.73 kB / 361.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.1295, allocations: 200.1 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.1295, allocations: 4.375 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.1295, allocations: 4.375 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003153/0.1299, allocations: 143 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.1299, allocations: 4 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.1299, allocations: 3.938 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1299, allocations: 0 / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.13, allocations: 27.92 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003861/0.1304, allocations: 295.4 kB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.1306, allocations: 98.36 kB / 362.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.26e-05/0.1307, allocations: 43.48 kB / 362.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.1307, allocations: 4 kB / 362.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.1307, allocations: 38.56 kB / 362.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.1307, allocations: 3.938 kB / 362.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002964/0.131, allocations: 97.5 kB / 362.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.167e-05/0.1311, allocations: 136.5 kB / 362.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.1313, allocations: 158 kB / 362.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.1313, allocations: 25.7 kB / 362.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.139e-05/0.1314, allocations: 96.12 kB / 362.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.1314, allocations: 3.984 kB / 362.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.173e-05/0.1315, allocations: 21.62 kB / 362.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1317, allocations: 326.8 kB / 363.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.749e-05/0.1317, allocations: 12 kB / 363.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.784e-05/0.1318, allocations: 49.14 kB / 363.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.1319, allocations: 65.08 kB / 363.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1319, allocations: 7.875 kB / 363.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001601/0.1321, allocations: 81.55 kB / 363.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.1321, allocations: 10.5 kB / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1322, allocations: 0 / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1322, allocations: 0 / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.092e-05/0.1323, allocations: 16.17 kB / 363.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1323, allocations: 4 kB / 363.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.728e-05/0.1323, allocations: 7.906 kB / 363.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.1324, allocations: 4 kB / 363.4 MB, free: 8.633 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.1325, allocations: 133.7 kB / 363.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.1326, allocations: 61.53 kB / 363.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.1327, allocations: 15.83 kB / 363.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1327, allocations: 3.938 kB / 363.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.1327, allocations: 12.2 kB / 363.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1327, allocations: 0 / 363.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.1329, allocations: 189.5 kB / 363.8 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1329, allocations: 0 / 363.8 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.174e-05/0.133, allocations: 15.98 kB / 363.8 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.133, allocations: 0 / 363.8 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.133, allocations: 4 kB / 363.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1331, allocations: 0 / 363.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1331, allocations: 0 / 363.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/0.1333, allocations: 201.9 kB / 364 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.1334, allocations: 104.9 kB / 364.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.1334, allocations: 0 / 364.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.247e-05/0.1335, allocations: 4 kB / 364.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.234e-05/0.1336, allocations: 0 / 364.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.1336, allocations: 8 kB / 364.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.677e-05/0.1337, allocations: 116.1 kB / 364.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1337, allocations: 0 / 364.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002376/0.1339, allocations: 8 kB / 364.2 MB, free: 7.66 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001235/0.134, allocations: 103.2 kB / 364.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000166/0.1342, allocations: 48.17 kB / 364.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1342, allocations: 4.062 kB / 364.4 MB, free: 7.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.849e-05/0.1343, allocations: 7.984 kB / 364.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.1347, allocations: 42.31 kB / 364.4 MB, free: 7.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004305/0.1352, allocations: 239.5 kB / 364.7 MB, free: 7.176 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.1355, allocations: 0.6963 MB / 365.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.227e-05/0.1356, allocations: 15.42 kB / 365.4 MB, free: 6.441 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1356, allocations: 0 / 365.4 MB, free: 6.441 MB / 302.1 MB Notification: Performance of Templates: time 0.002782/0.1384, allocations: 1.024 MB / 366.4 MB, free: 5.422 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches