Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008331/0.0008331, allocations: 93.25 kB / 17.35 MB, free: 6.371 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.0008467/0.0008467, allocations: 173.1 kB / 18.25 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.336/1.336, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2105/0.2105, allocations: 44.25 MB / 337.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.000364, allocations: 12.8 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.115, allocations: 61.92 MB / 472.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005544/0.1155, allocations: 206.9 kB / 472.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1166, allocations: 0.7674 MB / 473.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.199e-05/0.1166, allocations: 0 / 473.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.162e-05/0.1166, allocations: 0 / 473.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000121/0.1167, allocations: 3.938 kB / 473.2 MB, free: 12.38 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.ReadFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0004805/0.1172, allocations: 46.84 kB / 473.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.344e-05/0.1173, allocations: 0 / 473.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.186e-05/0.1173, allocations: 8 kB / 473.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.125e-05/0.1174, allocations: 3.938 kB / 473.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.461e-05/0.1174, allocations: 11.98 kB / 473.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.267e-06/0.1175, allocations: 0 / 473.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.77e-05/0.1176, allocations: 43.97 kB / 473.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.1176, allocations: 3.984 kB / 473.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.654e-05/0.1176, allocations: 25.7 kB / 473.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.1177, allocations: 51.88 kB / 473.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1177, allocations: 0 / 473.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1177, allocations: 0 / 473.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.1177, allocations: 0 / 473.4 MB, free: 12.18 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002877/0.118, allocations: 355.7 kB / 473.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.1181, allocations: 8.031 kB / 473.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.578e-05/0.1181, allocations: 0.9375 kB / 473.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.1182, allocations: 168.4 kB / 473.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.1182, allocations: 4.312 kB / 473.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.1182, allocations: 4.375 kB / 473.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.969e-05/0.1183, allocations: 26.27 kB / 474 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.351e-06/0.1183, allocations: 192 / 474 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.1183, allocations: 7.938 kB / 474 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1184, allocations: 4 kB / 474 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.458e-05/0.1184, allocations: 3.938 kB / 474 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001137/0.1185, allocations: 145.7 kB / 474.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.584e-05/0.1185, allocations: 26.55 kB / 474.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.155e-05/0.1186, allocations: 4.859 kB / 474.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-06/0.1186, allocations: 0 / 474.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1186, allocations: 64.33 kB / 474.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.1186, allocations: 0 / 474.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001594/0.1188, allocations: 67.33 kB / 474.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.1188, allocations: 77.11 kB / 474.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.521e-05/0.1189, allocations: 93.86 kB / 474.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.1189, allocations: 25.7 kB / 474.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.192e-05/0.1189, allocations: 84.14 kB / 474.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.279e-05/0.119, allocations: 256 / 474.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.203e-05/0.119, allocations: 17.66 kB / 474.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.294e-05/0.1191, allocations: 314.8 kB / 474.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.875e-06/0.1191, allocations: 0 / 474.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.703e-06/0.1191, allocations: 4 kB / 474.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.211e-05/0.1191, allocations: 64.25 kB / 475 MB, free: 10.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1192, allocations: 4 kB / 475 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.178e-05/0.1192, allocations: 59.31 kB / 475 MB, free: 10.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.1193, allocations: 33.8 kB / 475 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.1193, allocations: 7.938 kB / 475.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.1193, allocations: 0 / 475.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.319e-06/0.1193, allocations: 7.984 kB / 475.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.1193, allocations: 0 / 475.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.472e-05/0.1193, allocations: 0 / 475.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.1193, allocations: 7.938 kB / 475.1 MB, free: 10.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 6.84e-05/0.1194, allocations: 131.5 kB / 475.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.803e-06/0.1194, allocations: 0 / 475.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.38e-05/0.1194, allocations: 19.02 kB / 475.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1194, allocations: 4 kB / 475.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.1194, allocations: 0 / 475.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1195, allocations: 0 / 475.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.371e-05/0.1195, allocations: 146 kB / 475.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1195, allocations: 0 / 475.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-06/0.1196, allocations: 4 kB / 475.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.103e-06/0.1196, allocations: 0 / 475.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.1196, allocations: 3.938 kB / 475.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1196, allocations: 0 / 475.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1196, allocations: 0 / 475.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.311e-05/0.1197, allocations: 94.83 kB / 475.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.1197, allocations: 81.09 kB / 475.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.1197, allocations: 7.875 kB / 475.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.1197, allocations: 4 kB / 475.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.449e-05/0.1198, allocations: 3.938 kB / 475.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.1198, allocations: 7.969 kB / 475.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.57e-05/0.1198, allocations: 79.31 kB / 475.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1198, allocations: 0 / 475.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.12, allocations: 27.94 kB / 475.7 MB, free: 9.539 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0003318/0.1204, allocations: 188.5 kB / 475.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.607e-05/0.1204, allocations: 63.39 kB / 475.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1205, allocations: 0 / 475.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.989e-05/0.1205, allocations: 55.41 kB / 476 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.1206, allocations: 0 / 476 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001665/0.1208, allocations: 86.89 kB / 476.1 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001998/0.121, allocations: 0.6731 MB / 476.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.73e-06/0.121, allocations: 0 / 476.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.337e-06/0.121, allocations: 11.44 kB / 476.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of SimCode: time 1.513e-06/0.121, allocations: 0 / 476.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of Templates: time 0.002682/0.1237, allocations: 0.6329 MB / 477.4 MB, free: 7.785 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches