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.001781/0.001781, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.001804/0.001804, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.508/1.508, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008949/0.0008949, allocations: 43 kB / 300 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.101, allocations: 49.45 MB / 349.4 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.00276/0.1038, allocations: 1.667 MB / 351.1 MB, free: 2.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007376/0.1046, allocations: 0.5142 MB / 351.6 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.624e-05/0.1047, allocations: 8 kB / 351.6 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.315e-05/0.1047, allocations: 3.938 kB / 351.6 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.1049, allocations: 3.938 kB / 351.6 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.1051, allocations: 47.89 kB / 351.6 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.071e-05/0.1052, allocations: 63.72 kB / 351.7 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.453e-05/0.1053, allocations: 15.98 kB / 351.7 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.754e-05/0.1054, allocations: 27.86 kB / 351.8 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.596e-05/0.1054, allocations: 27.84 kB / 351.8 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.834e-05/0.1055, allocations: 4 kB / 351.8 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.376e-05/0.1055, allocations: 7.938 kB / 351.8 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.901e-05/0.1055, allocations: 15.92 kB / 351.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.802e-05/0.1056, allocations: 31.75 kB / 351.8 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.831e-05/0.1057, allocations: 55.73 kB / 351.9 MB, free: 2.121 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1057, allocations: 0 / 351.9 MB, free: 2.121 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.1057, allocations: 0 / 351.9 MB, free: 2.121 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.1057, allocations: 4 kB / 351.9 MB, free: 2.117 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.0004279/0.1061, allocations: 395.3 kB / 352.3 MB, free: 1.684 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.1062, allocations: 8.031 kB / 352.3 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.768e-05/0.1062, allocations: 12.75 kB / 352.3 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.1064, allocations: 208 kB / 352.5 MB, free: 1.422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.1064, allocations: 384 / 352.5 MB, free: 1.422 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.1065, allocations: 4.375 kB / 352.5 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002901/0.1068, allocations: 151 kB / 352.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.1068, allocations: 0 / 352.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.1068, allocations: 0 / 352.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1068, allocations: 4 kB / 352.7 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.983e-05/0.1069, allocations: 23.92 kB / 352.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002955/0.1072, allocations: 287.5 kB / 353 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.1073, allocations: 94.48 kB / 353.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.178e-05/0.1074, allocations: 51.36 kB / 353.1 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.1075, allocations: 0 / 353.1 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.1075, allocations: 34.56 kB / 353.1 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.1075, allocations: 0 / 353.1 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002738/0.1078, allocations: 105.4 kB / 353.2 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.1078, allocations: 136.5 kB / 353.4 MB, free: 380 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.108, allocations: 153.9 kB / 353.5 MB, free: 216 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.108, allocations: 25.7 kB / 353.6 MB, free: 184 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.636e-05/0.108, allocations: 92.64 kB / 353.6 MB, free: 88 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.1081, allocations: 7.906 kB / 353.7 MB, free: 80 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.904e-05/0.1081, allocations: 25.7 kB / 353.7 MB, free: 48 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1082, allocations: 318.8 kB / 354 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.557e-05/0.1083, allocations: 11.98 kB / 354 MB, free: 15.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.826e-05/0.1083, allocations: 49.14 kB / 354 MB, free: 15.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.1084, allocations: 65.08 kB / 354.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1085, allocations: 4 kB / 354.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001851/0.1087, allocations: 89.39 kB / 354.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1087, allocations: 8 kB / 354.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1087, allocations: 0 / 354.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1087, allocations: 4 kB / 354.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-05/0.1088, allocations: 19.86 kB / 354.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.1088, allocations: 4 kB / 354.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.829e-05/0.1089, allocations: 4.188 kB / 354.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.577e-06/0.1089, allocations: 8 kB / 354.2 MB, free: 15.42 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 8.954e-05/0.109, allocations: 125.8 kB / 354.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.407e-05/0.1091, allocations: 61.55 kB / 354.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.067e-05/0.1091, allocations: 19.84 kB / 354.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1092, allocations: 0 / 354.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1092, allocations: 4 kB / 354.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.1092, allocations: 0 / 354.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001842/0.1094, allocations: 185.4 kB / 354.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1094, allocations: 4.094 kB / 354.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.075e-05/0.1094, allocations: 19.92 kB / 354.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1095, allocations: 0 / 354.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.1095, allocations: 8 kB / 354.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1095, allocations: 0 / 354.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1095, allocations: 0 / 354.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002127/0.1097, allocations: 194 kB / 354.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.468e-05/0.1098, allocations: 100.9 kB / 355 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.1098, allocations: 0 / 355 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.098e-05/0.1099, allocations: 11.98 kB / 355 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.572e-05/0.1099, allocations: 0 / 355 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.1099, allocations: 4.188 kB / 355 MB, free: 14.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.821e-05/0.11, allocations: 111.2 kB / 355.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.11, allocations: 4 kB / 355.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002399/0.1103, allocations: 12 kB / 355.1 MB, free: 14.46 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.0001121/0.1104, allocations: 99.19 kB / 355.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001629/0.1106, allocations: 47.91 kB / 355.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1106, allocations: 0 / 355.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.799e-05/0.1106, allocations: 8.375 kB / 355.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.1111, allocations: 48.53 kB / 355.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004086/0.1115, allocations: 235.6 kB / 355.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.1119, allocations: 0.7004 MB / 356.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.463e-05/0.1119, allocations: 4.672 kB / 356.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.233e-05/0.1119, allocations: 15.44 kB / 356.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1119, allocations: 0 / 356.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of Templates: time 0.003159/0.1151, allocations: 0.7671 MB / 357 MB, free: 12.48 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","/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) Reference file matches