Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001768/0.001768, allocations: 114.1 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002367/0.002367, allocations: 208.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.482/1.482, allocations: 230.6 MB / 254.8 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2284/0.2284, allocations: 46.91 MB / 357.8 MB, free: 10.35 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 63.91 kB / 0.492 GB, free: 7.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1287, allocations: 65.98 MB / 0.5565 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00182/0.1305, allocations: 493 kB / 0.557 GB, free: 4.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.1319, allocations: 0.7859 MB / 0.5577 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.027e-05/0.1319, allocations: 4 kB / 0.5577 GB, free: 4.117 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.228e-05/0.132, allocations: 0 / 0.5577 GB, free: 4.117 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.1321, allocations: 12 kB / 0.5577 GB, free: 4.105 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362: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.0007239/0.1329, allocations: 50.08 kB / 0.5578 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.336e-05/0.1329, allocations: 0 / 0.5578 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.644e-05/0.133, allocations: 0 / 0.5578 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.102e-05/0.133, allocations: 11.97 kB / 0.5578 GB, free: 4.047 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.978e-05/0.1331, allocations: 0 / 0.5578 GB, free: 4.047 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.177e-06/0.1331, allocations: 4 kB / 0.5578 GB, free: 4.043 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.1332, allocations: 59.89 kB / 0.5579 GB, free: 3.984 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.246e-06/0.1332, allocations: 4 kB / 0.5579 GB, free: 3.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.148e-05/0.1333, allocations: 3.938 kB / 0.5579 GB, free: 3.977 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.1334, allocations: 47.88 kB / 0.5579 GB, free: 3.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1334, allocations: 0 / 0.5579 GB, free: 3.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1334, allocations: 0 / 0.5579 GB, free: 3.93 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1334, allocations: 0 / 0.5579 GB, free: 3.93 MB / 414.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.0004134/0.1338, allocations: 357.1 kB / 0.5583 GB, free: 3.523 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1339, allocations: 8.031 kB / 0.5583 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.1339, allocations: 4.938 kB / 0.5583 GB, free: 3.512 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.1341, allocations: 164.4 kB / 0.5584 GB, free: 3.312 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.769e-06/0.1341, allocations: 4.375 kB / 0.5584 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.1341, allocations: 384 / 0.5584 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.175e-05/0.1342, allocations: 30.27 kB / 0.5585 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1342, allocations: 4.125 kB / 0.5585 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.1342, allocations: 7.938 kB / 0.5585 GB, free: 3.262 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1342, allocations: 0 / 0.5585 GB, free: 3.262 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.941e-05/0.1342, allocations: 7.938 kB / 0.5585 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000163/0.1344, allocations: 157.6 kB / 0.5586 GB, free: 3.051 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.597e-05/0.1344, allocations: 18.58 kB / 0.5586 GB, free: 3.023 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.778e-05/0.1344, allocations: 8.953 kB / 0.5586 GB, free: 3.012 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.058e-06/0.1344, allocations: 0 / 0.5586 GB, free: 3.012 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.556e-05/0.1345, allocations: 56.27 kB / 0.5587 GB, free: 2.941 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.233e-06/0.1345, allocations: 0 / 0.5587 GB, free: 2.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002002/0.1347, allocations: 75.27 kB / 0.5588 GB, free: 2.855 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.1348, allocations: 77.11 kB / 0.5588 GB, free: 2.762 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.545e-05/0.1349, allocations: 97.98 kB / 0.5589 GB, free: 2.656 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.1349, allocations: 25.7 kB / 0.559 GB, free: 2.625 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.494e-05/0.1349, allocations: 80.14 kB / 0.559 GB, free: 2.543 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.808e-05/0.1349, allocations: 0 / 0.559 GB, free: 2.543 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.135, allocations: 17.72 kB / 0.5591 GB, free: 2.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1351, allocations: 314.8 kB / 0.5594 GB, free: 2.203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.073e-05/0.1351, allocations: 0 / 0.5594 GB, free: 2.203 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.092e-05/0.1351, allocations: 8.125 kB / 0.5594 GB, free: 2.195 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.066e-05/0.1352, allocations: 60.2 kB / 0.5594 GB, free: 2.121 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1352, allocations: 0 / 0.5594 GB, free: 2.121 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.024e-05/0.1353, allocations: 63.41 kB / 0.5595 GB, free: 2.047 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.556e-05/0.1353, allocations: 39.72 kB / 0.5595 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.1353, allocations: 3.938 kB / 0.5595 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.1353, allocations: 3.984 kB / 0.5595 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1353, allocations: 0 / 0.5595 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.1353, allocations: 0 / 0.5595 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.024e-05/0.1354, allocations: 4.094 kB / 0.5595 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.1354, allocations: 4 kB / 0.5595 GB, free: 1.988 MB / 414.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 9.08e-05/0.1355, allocations: 131.5 kB / 0.5597 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.897e-06/0.1355, allocations: 0 / 0.5597 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.614e-05/0.1355, allocations: 11.06 kB / 0.5597 GB, free: 1.836 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1355, allocations: 0 / 0.5597 GB, free: 1.836 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1355, allocations: 3.984 kB / 0.5597 GB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1355, allocations: 0 / 0.5597 GB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.1356, allocations: 149.6 kB / 0.5598 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1356, allocations: 4 kB / 0.5598 GB, free: 1.633 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-06/0.1356, allocations: 4 kB / 0.5598 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1356, allocations: 0 / 0.5598 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.1356, allocations: 3.938 kB / 0.5598 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1356, allocations: 0 / 0.5598 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1356, allocations: 7.922 kB / 0.5598 GB, free: 1.617 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.1357, allocations: 88.5 kB / 0.5599 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.273e-05/0.1358, allocations: 81.06 kB / 0.56 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.1358, allocations: 11.95 kB / 0.56 GB, free: 1.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.604e-05/0.1358, allocations: 11.94 kB / 0.56 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.088e-05/0.1358, allocations: 0 / 0.56 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-06/0.1358, allocations: 0 / 0.56 GB, free: 1.387 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.226e-05/0.1359, allocations: 75.28 kB / 0.5601 GB, free: 1.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1359, allocations: 0 / 0.5601 GB, free: 1.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002165/0.1361, allocations: 19.94 kB / 0.5601 GB, free: 1.293 MB / 414.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.0004928/0.1366, allocations: 196.3 kB / 0.5603 GB, free: 1.121 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.1367, allocations: 67.34 kB / 0.5604 GB, free: 1.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1367, allocations: 0 / 0.5604 GB, free: 1.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.062e-05/0.1368, allocations: 55.41 kB / 0.5604 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.1369, allocations: 0 / 0.5604 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002429/0.1371, allocations: 110.8 kB / 0.5605 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.1374, allocations: 0.6729 MB / 0.5612 GB, free: 140 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.331e-05/0.1374, allocations: 7.438 kB / 0.5612 GB, free: 132 kB / 414.1 MB Notification: Performance of SimCode: time 4.7e-07/0.1374, allocations: 0 / 0.5612 GB, free: 132 kB / 414.1 MB Notification: Performance of Templates: time 0.002761/0.1402, allocations: 0.8233 MB / 0.562 GB, free: 15.3 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.610433603986166]