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.0009901/0.0009902, allocations: 94.25 kB / 17.35 MB, free: 6.344 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.001255/0.001255, allocations: 170.9 kB / 18.25 MB, free: 5.508 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.471/1.471, allocations: 223.2 MB / 242.3 MB, free: 228 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.2182/0.2182, allocations: 44.25 MB / 337.7 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003126/0.0003126, allocations: 11.98 kB / 410.3 MB, free: 27.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.13, allocations: 61.92 MB / 472.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006484/0.1307, allocations: 202.9 kB / 472.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.1318, allocations: 0.7713 MB / 473.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.195e-05/0.1318, allocations: 0 / 473.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.1318, allocations: 0 / 473.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.132, allocations: 8 kB / 473.2 MB, free: 12.42 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.0005503/0.1326, allocations: 45.33 kB / 473.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.003e-05/0.1326, allocations: 4 kB / 473.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.346e-05/0.1326, allocations: 0 / 473.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.918e-05/0.1327, allocations: 7.922 kB / 473.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.556e-05/0.1327, allocations: 4 kB / 473.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.1328, allocations: 0 / 473.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001777/0.1329, allocations: 51.89 kB / 473.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.072e-05/0.133, allocations: 12 kB / 473.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.881e-05/0.133, allocations: 25.7 kB / 473.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.1331, allocations: 43.88 kB / 473.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.1331, allocations: 8 kB / 473.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1331, allocations: 0 / 473.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1331, allocations: 0 / 473.4 MB, free: 12.22 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.0003786/0.1335, allocations: 345.3 kB / 473.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.1336, allocations: 8.031 kB / 473.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.455e-05/0.1336, allocations: 4.938 kB / 473.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.1337, allocations: 168.4 kB / 473.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.1338, allocations: 384 / 473.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.397e-06/0.1338, allocations: 384 / 473.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.651e-05/0.1339, allocations: 34.2 kB / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1339, allocations: 192 / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.1339, allocations: 3.938 kB / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.1339, allocations: 0 / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.443e-05/0.1339, allocations: 3.938 kB / 474 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002257/0.1342, allocations: 153.7 kB / 474.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.168e-05/0.1342, allocations: 18.58 kB / 474.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.439e-05/0.1342, allocations: 8.953 kB / 474.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.742e-06/0.1342, allocations: 0 / 474.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.1343, allocations: 60.2 kB / 474.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1343, allocations: 0 / 474.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001784/0.1345, allocations: 75.31 kB / 474.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.471e-05/0.1346, allocations: 85.23 kB / 474.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.804e-05/0.1346, allocations: 89.86 kB / 474.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.1346, allocations: 25.7 kB / 474.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.157e-05/0.1347, allocations: 80.14 kB / 474.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.493e-05/0.1347, allocations: 0 / 474.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-05/0.1348, allocations: 17.66 kB / 474.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1349, allocations: 314.8 kB / 474.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.353e-06/0.1349, allocations: 0 / 474.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.242e-06/0.1349, allocations: 4.125 kB / 474.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.291e-05/0.1349, allocations: 68.19 kB / 475 MB, free: 10.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.135, allocations: 0 / 475 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.491e-05/0.135, allocations: 67.31 kB / 475 MB, free: 10.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.1351, allocations: 29.7 kB / 475 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1351, allocations: 3.938 kB / 475.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.1351, allocations: 4 kB / 475.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.144e-06/0.1351, allocations: 3.984 kB / 475.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.1351, allocations: 0 / 475.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.282e-05/0.1351, allocations: 4.094 kB / 475.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.1351, allocations: 0 / 475.1 MB, free: 10.3 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.412e-05/0.1352, allocations: 135.5 kB / 475.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-06/0.1352, allocations: 0 / 475.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.187e-05/0.1353, allocations: 11.02 kB / 475.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1353, allocations: 0 / 475.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.1353, allocations: 4 kB / 475.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1353, allocations: 4 kB / 475.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.064e-05/0.1354, allocations: 150 kB / 475.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1354, allocations: 4 kB / 475.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1354, allocations: 3.938 kB / 475.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1354, allocations: 0 / 475.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1354, allocations: 3.938 kB / 475.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1354, allocations: 4 kB / 475.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1354, allocations: 0 / 475.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.794e-05/0.1355, allocations: 90.83 kB / 475.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.1355, allocations: 77.11 kB / 475.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.1356, allocations: 11.91 kB / 475.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.137e-06/0.1356, allocations: 0 / 475.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.1356, allocations: 3.984 kB / 475.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.1356, allocations: 7.984 kB / 475.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.744e-05/0.1356, allocations: 75.28 kB / 475.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1356, allocations: 0 / 475.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002094/0.1359, allocations: 19.94 kB / 475.7 MB, free: 9.594 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.0003615/0.1362, allocations: 186 kB / 475.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.985e-05/0.1363, allocations: 71.33 kB / 475.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.1363, allocations: 0 / 475.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.257e-05/0.1364, allocations: 55.41 kB / 476 MB, free: 9.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.1365, allocations: 4 kB / 476 MB, free: 9.281 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001675/0.1367, allocations: 82.77 kB / 476 MB, free: 9.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.1369, allocations: 0.6731 MB / 476.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.969e-06/0.137, allocations: 0 / 476.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.365e-06/0.137, allocations: 7.438 kB / 476.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.137, allocations: 128 / 476.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of Templates: time 0.002623/0.1396, allocations: 0.6369 MB / 477.4 MB, free: 7.832 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches