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.0009229/0.000923, allocations: 101.6 kB / 18.01 MB, free: 5.73 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.001519/0.001519, allocations: 176.2 kB / 18.91 MB, free: 4.871 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.371/1.371, allocations: 223.3 MB / 243 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2054/0.2054, allocations: 44.24 MB / 338.3 MB, free: 2.434 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.000302, allocations: 8 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1069, allocations: 61.92 MB / 472.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005709/0.1075, allocations: 211 kB / 473.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.1087, allocations: 0.7635 MB / 473.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.307e-05/0.1088, allocations: 0 / 473.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.386e-05/0.1088, allocations: 4 kB / 473.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.1089, allocations: 7.922 kB / 473.9 MB, free: 12.36 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.0005825/0.1095, allocations: 38.92 kB / 473.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.982e-05/0.1096, allocations: 3.938 kB / 473.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.317e-05/0.1096, allocations: 7.984 kB / 473.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.809e-05/0.1096, allocations: 3.938 kB / 473.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.535e-05/0.1097, allocations: 4 kB / 473.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.418e-06/0.1097, allocations: 3.984 kB / 473.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.1099, allocations: 47.97 kB / 474 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.019e-05/0.1099, allocations: 3.984 kB / 474 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.856e-05/0.1099, allocations: 29.7 kB / 474 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.33e-05/0.11, allocations: 31.95 kB / 474.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.11, allocations: 0 / 474.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.11, allocations: 0 / 474.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.11, allocations: 7.938 kB / 474.1 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.0002985/0.1103, allocations: 345.3 kB / 474.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.1104, allocations: 8.031 kB / 474.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.1104, allocations: 4.938 kB / 474.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.1106, allocations: 164.4 kB / 474.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.1106, allocations: 4.375 kB / 474.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.1106, allocations: 384 / 474.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.394e-05/0.1107, allocations: 38.19 kB / 474.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.1107, allocations: 192 / 474.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.1107, allocations: 3.938 kB / 474.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.1107, allocations: 0 / 474.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.629e-05/0.1108, allocations: 3.984 kB / 474.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001248/0.1109, allocations: 145.7 kB / 474.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.481e-05/0.1109, allocations: 22.58 kB / 474.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.753e-05/0.111, allocations: 20.81 kB / 474.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.292e-06/0.111, allocations: 0 / 474.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.111, allocations: 56.27 kB / 474.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.111, allocations: 0 / 474.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001437/0.1112, allocations: 63.34 kB / 474.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.1112, allocations: 77.11 kB / 475 MB, free: 11.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.297e-05/0.1113, allocations: 106 kB / 475.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.1113, allocations: 25.7 kB / 475.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.307e-05/0.1113, allocations: 80.14 kB / 475.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.214e-05/0.1114, allocations: 0 / 475.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.1114, allocations: 9.719 kB / 475.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.628e-05/0.1115, allocations: 314.8 kB / 475.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.327e-06/0.1115, allocations: 3.938 kB / 475.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.889e-06/0.1115, allocations: 0 / 475.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.489e-05/0.1116, allocations: 68.45 kB / 475.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1116, allocations: 0 / 475.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.111e-05/0.1116, allocations: 71.23 kB / 475.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.1117, allocations: 29.7 kB / 475.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1117, allocations: 3.938 kB / 475.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.1117, allocations: 0 / 475.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.1117, allocations: 4 kB / 475.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/0.1117, allocations: 0 / 475.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.458e-05/0.1117, allocations: 0 / 475.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.994e-06/0.1118, allocations: 32 / 475.7 MB, free: 10.27 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 8.115e-05/0.1118, allocations: 147.5 kB / 475.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-06/0.1119, allocations: 4 kB / 475.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.562e-05/0.1119, allocations: 11.02 kB / 475.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1119, allocations: 0 / 475.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1119, allocations: 4 kB / 475.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1119, allocations: 0 / 475.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001011/0.112, allocations: 150 kB / 476 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.112, allocations: 0 / 476 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.112, allocations: 0 / 476 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.112, allocations: 4 kB / 476 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.112, allocations: 3.938 kB / 476 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.112, allocations: 0 / 476 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1121, allocations: 4 kB / 476 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.465e-05/0.1122, allocations: 86.83 kB / 476.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.068e-05/0.1122, allocations: 81.11 kB / 476.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.1122, allocations: 3.938 kB / 476.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.267e-06/0.1122, allocations: 4.031 kB / 476.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.27e-05/0.1122, allocations: 0 / 476.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.1123, allocations: 7.938 kB / 476.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.77e-05/0.1123, allocations: 79.22 kB / 476.3 MB, free: 9.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1123, allocations: 0 / 476.3 MB, free: 9.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002121/0.1125, allocations: 23.98 kB / 476.3 MB, free: 9.555 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.0003755/0.1129, allocations: 198.8 kB / 476.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001013/0.113, allocations: 55.41 kB / 476.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.113, allocations: 64 / 476.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.51e-05/0.1131, allocations: 63.39 kB / 476.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001351/0.1132, allocations: 4 kB / 476.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001929/0.1134, allocations: 104.5 kB / 476.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.1137, allocations: 0.677 MB / 477.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.138e-05/0.1137, allocations: 7.438 kB / 477.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1137, allocations: 0 / 477.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of Templates: time 0.002414/0.1161, allocations: 0.8198 MB / 478.2 MB, free: 7.578 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches