Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 112.9 kB / 19.17 MB, free: 3.891 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 210.5 kB / 22.13 MB, free: 0.9375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 230.2 MB / 255.2 MB, free: 15.39 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2241/0.2241, allocations: 46.88 MB / 358.1 MB, free: 10.54 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002472/0.002472, allocations: 79.88 kB / 0.4923 GB, free: 8.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1319, allocations: 66 MB / 0.5568 GB, free: 5.969 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001863/0.1338, allocations: 478.4 kB / 0.5572 GB, free: 5.496 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.1351, allocations: 0.7899 MB / 0.558 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.807e-05/0.1352, allocations: 0 / 0.558 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.835e-05/0.1352, allocations: 0 / 0.558 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001832/0.1354, allocations: 11.94 kB / 0.558 GB, free: 4.691 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0007325/0.1361, allocations: 55.39 kB / 0.5581 GB, free: 4.641 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.391e-05/0.1362, allocations: 11.92 kB / 0.5581 GB, free: 4.629 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.816e-05/0.1362, allocations: 0 / 0.5581 GB, free: 4.629 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.757e-05/0.1362, allocations: 0 / 0.5581 GB, free: 4.629 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.1363, allocations: 7.984 kB / 0.5581 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.1363, allocations: 0 / 0.5581 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.1365, allocations: 59.95 kB / 0.5581 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.706e-06/0.1365, allocations: 4 kB / 0.5582 GB, free: 4.559 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.265e-05/0.1365, allocations: 3.938 kB / 0.5582 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.1367, allocations: 47.92 kB / 0.5582 GB, free: 4.508 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1367, allocations: 3.938 kB / 0.5582 GB, free: 4.504 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1367, allocations: 0 / 0.5582 GB, free: 4.504 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1367, allocations: 0 / 0.5582 GB, free: 4.504 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.0004535/0.1371, allocations: 361 kB / 0.5585 GB, free: 4.094 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1372, allocations: 8.031 kB / 0.5586 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.124e-05/0.1372, allocations: 0.9375 kB / 0.5586 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.1374, allocations: 164.4 kB / 0.5587 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.1374, allocations: 8.375 kB / 0.5587 GB, free: 3.879 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-06/0.1374, allocations: 384 / 0.5587 GB, free: 3.879 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.963e-05/0.1375, allocations: 26.27 kB / 0.5587 GB, free: 3.848 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.1375, allocations: 8.125 kB / 0.5588 GB, free: 3.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.1375, allocations: 3.938 kB / 0.5588 GB, free: 3.836 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1375, allocations: 4 kB / 0.5588 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.973e-05/0.1375, allocations: 3.984 kB / 0.5588 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001723/0.1377, allocations: 145.7 kB / 0.5589 GB, free: 3.637 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.504e-05/0.1378, allocations: 26.52 kB / 0.5589 GB, free: 3.602 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.526e-05/0.1378, allocations: 4.859 kB / 0.5589 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/0.1378, allocations: 0 / 0.5589 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.863e-05/0.1378, allocations: 60.33 kB / 0.559 GB, free: 3.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.1378, allocations: 0 / 0.559 GB, free: 3.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001932/0.138, allocations: 75.27 kB / 0.5591 GB, free: 3.434 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.1381, allocations: 77.23 kB / 0.5591 GB, free: 3.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.167e-05/0.1382, allocations: 93.86 kB / 0.5592 GB, free: 3.238 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.1382, allocations: 29.7 kB / 0.5593 GB, free: 3.203 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.346e-05/0.1382, allocations: 80.14 kB / 0.5593 GB, free: 3.121 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.1382, allocations: 0 / 0.5593 GB, free: 3.121 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.4e-05/0.1383, allocations: 17.7 kB / 0.5593 GB, free: 3.098 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1384, allocations: 314.8 kB / 0.5596 GB, free: 2.781 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.1384, allocations: 0 / 0.5596 GB, free: 2.781 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.315e-06/0.1384, allocations: 4.125 kB / 0.5597 GB, free: 2.777 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.229e-05/0.1385, allocations: 60.27 kB / 0.5597 GB, free: 2.703 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1385, allocations: 0 / 0.5597 GB, free: 2.703 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.267e-05/0.1386, allocations: 71.33 kB / 0.5598 GB, free: 2.621 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.1386, allocations: 33.64 kB / 0.5598 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.1386, allocations: 3.938 kB / 0.5598 GB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.1386, allocations: 4 kB / 0.5598 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1386, allocations: 0 / 0.5598 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1386, allocations: 0 / 0.5598 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.536e-05/0.1386, allocations: 4.094 kB / 0.5598 GB, free: 2.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.1387, allocations: 0 / 0.5598 GB, free: 2.57 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.49e-05/0.1388, allocations: 135.5 kB / 0.56 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/0.1388, allocations: 3.984 kB / 0.56 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.147e-05/0.1388, allocations: 7.062 kB / 0.56 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1388, allocations: 0 / 0.56 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1388, allocations: 0 / 0.56 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-06/0.1388, allocations: 0 / 0.56 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.1389, allocations: 153.6 kB / 0.5601 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.185e-06/0.1389, allocations: 7.984 kB / 0.5601 GB, free: 2.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.71e-07/0.1389, allocations: 0 / 0.5601 GB, free: 2.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1389, allocations: 0 / 0.5601 GB, free: 2.207 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.1389, allocations: 3.938 kB / 0.5601 GB, free: 2.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1389, allocations: 4 kB / 0.5601 GB, free: 2.199 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1389, allocations: 0 / 0.5601 GB, free: 2.199 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001201/0.139, allocations: 100.5 kB / 0.5602 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.275e-05/0.1391, allocations: 81.06 kB / 0.5603 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.1391, allocations: 7.969 kB / 0.5603 GB, free: 1.973 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.016e-05/0.1391, allocations: 0 / 0.5603 GB, free: 1.973 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.311e-05/0.1391, allocations: 4 kB / 0.5603 GB, free: 1.969 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.1391, allocations: 4 kB / 0.5603 GB, free: 1.965 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.609e-05/0.1392, allocations: 75.28 kB / 0.5604 GB, free: 1.891 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1392, allocations: 0 / 0.5604 GB, free: 1.891 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002275/0.1394, allocations: 15.94 kB / 0.5604 GB, free: 1.875 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.0004703/0.1399, allocations: 181.5 kB / 0.5606 GB, free: 1.707 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.14, allocations: 63.41 kB / 0.5606 GB, free: 1.633 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.14, allocations: 0 / 0.5606 GB, free: 1.633 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.593e-05/0.14, allocations: 63.33 kB / 0.5607 GB, free: 1.559 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.1402, allocations: 8.406 kB / 0.5607 GB, free: 1.555 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002227/0.1404, allocations: 106.8 kB / 0.5608 GB, free: 1.418 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.1407, allocations: 0.669 MB / 0.5615 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.35e-05/0.1407, allocations: 7.438 kB / 0.5615 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1407, allocations: 0 / 0.5615 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of Templates: time 0.002704/0.1434, allocations: 0.8305 MB / 0.5623 GB, free: 15.88 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.541956418892369]