Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001473/0.001473, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001571/0.001571, allocations: 207.5 kB / 23.72 MB, free: 4.391 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.533/1.533, allocations: 230.5 MB / 257.4 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2345/0.2345, allocations: 46.95 MB / 360.8 MB, free: 3.914 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002575/0.002575, allocations: 83.88 kB / 0.4961 GB, free: 7.566 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3362, allocations: 66.08 MB / 0.5607 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00173/0.3379, allocations: 493 kB / 0.5611 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.3395, allocations: 0.8708 MB / 0.562 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.08e-05/0.3395, allocations: 0 / 0.562 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.893e-05/0.3395, allocations: 0 / 0.562 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.3397, allocations: 4 kB / 0.562 GB, free: 2.688 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:333:3-373: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.000659/0.3404, allocations: 60.56 kB / 0.562 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.818e-05/0.3404, allocations: 7.938 kB / 0.5621 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.414e-05/0.3405, allocations: 4 kB / 0.5621 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.869e-05/0.3405, allocations: 4 kB / 0.5621 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.738e-05/0.3406, allocations: 3.984 kB / 0.5621 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.917e-06/0.3406, allocations: 0 / 0.5621 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.3407, allocations: 59.89 kB / 0.5621 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.3407, allocations: 0 / 0.5621 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.337e-05/0.3407, allocations: 11.92 kB / 0.5621 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.3409, allocations: 51.67 kB / 0.5622 GB, free: 2.496 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3409, allocations: 0 / 0.5622 GB, free: 2.496 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3409, allocations: 0 / 0.5622 GB, free: 2.496 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3409, allocations: 0 / 0.5622 GB, free: 2.496 MB / 398.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.0004001/0.3413, allocations: 278 kB / 0.5624 GB, free: 2.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.3414, allocations: 12.03 kB / 0.5625 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.513e-05/0.3414, allocations: 34.75 kB / 0.5625 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.699e-05/0.3414, allocations: 4.938 kB / 0.5625 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.3416, allocations: 106.5 kB / 0.5626 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.3416, allocations: 384 / 0.5626 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.3416, allocations: 4.375 kB / 0.5626 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.3417, allocations: 51.97 kB / 0.5627 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.3417, allocations: 11.86 kB / 0.5627 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-06/0.3417, allocations: 4 kB / 0.5627 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.3417, allocations: 0 / 0.5627 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.057e-05/0.3417, allocations: 29.7 kB / 0.5627 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.3419, allocations: 120.8 kB / 0.5628 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.955e-05/0.342, allocations: 40.28 kB / 0.5628 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.392e-05/0.342, allocations: 34.66 kB / 0.5629 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.342, allocations: 7.969 kB / 0.5629 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.315e-05/0.3421, allocations: 56.27 kB / 0.5629 GB, free: 1.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3421, allocations: 0 / 0.5629 GB, free: 1.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002214/0.3423, allocations: 130.7 kB / 0.5631 GB, free: 1.395 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/0.3424, allocations: 81.09 kB / 0.5631 GB, free: 1.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.153e-05/0.3424, allocations: 93.98 kB / 0.5632 GB, free: 1.195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.3425, allocations: 29.64 kB / 0.5633 GB, free: 1.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.969e-05/0.3425, allocations: 84.14 kB / 0.5633 GB, free: 1.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.3425, allocations: 0 / 0.5633 GB, free: 1.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.3426, allocations: 13.72 kB / 0.5634 GB, free: 1.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3427, allocations: 314.8 kB / 0.5637 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.653e-05/0.3427, allocations: 25.7 kB / 0.5637 GB, free: 0.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.09e-05/0.3428, allocations: 29.69 kB / 0.5637 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.87e-05/0.3428, allocations: 64.2 kB / 0.5638 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3428, allocations: 192 / 0.5638 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.944e-05/0.3429, allocations: 93.11 kB / 0.5639 GB, free: 496 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.462e-05/0.343, allocations: 41.62 kB / 0.5639 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.343, allocations: 0 / 0.5639 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.343, allocations: 0 / 0.5639 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.343, allocations: 0 / 0.5639 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.343, allocations: 0 / 0.5639 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.343, allocations: 0 / 0.5639 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.343, allocations: 7.938 kB / 0.5639 GB, free: 440 kB / 398.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 0.0001031/0.3431, allocations: 131.5 kB / 0.564 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-06/0.3431, allocations: 3.938 kB / 0.564 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.05e-05/0.3431, allocations: 11.03 kB / 0.564 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3431, allocations: 0 / 0.564 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3431, allocations: 0 / 0.564 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.3432, allocations: 3.984 kB / 0.5641 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.3433, allocations: 120.8 kB / 0.5642 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3433, allocations: 0 / 0.5642 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.3433, allocations: 0 / 0.5642 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3433, allocations: 7.875 kB / 0.5642 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.3433, allocations: 0 / 0.5642 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3433, allocations: 0 / 0.5642 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3433, allocations: 0 / 0.5642 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.3434, allocations: 124.5 kB / 0.5643 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.758e-06/0.3434, allocations: 7.953 kB / 0.5643 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.3435, allocations: 3.938 kB / 0.5643 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.006e-05/0.3435, allocations: 0 / 0.5643 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.465e-05/0.3435, allocations: 3.984 kB / 0.5643 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.3435, allocations: 4 kB / 0.5643 GB, free: 15.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.06e-05/0.3435, allocations: 79.22 kB / 0.5644 GB, free: 15.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3435, allocations: 0 / 0.5644 GB, free: 15.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002185/0.3437, allocations: 19.94 kB / 0.5644 GB, free: 15.83 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.0008896/0.3446, allocations: 0.761 MB / 0.5651 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.3448, allocations: 110.8 kB / 0.5653 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3448, allocations: 0 / 0.5653 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.607e-05/0.3448, allocations: 81.11 kB / 0.5653 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.345, allocations: 4 kB / 0.5653 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003696/0.3453, allocations: 148.3 kB / 0.5655 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.146e-05/0.3454, allocations: 59.34 kB / 0.5655 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.967e-06/0.3454, allocations: 0 / 0.5655 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.64e-05/0.3454, allocations: 7.438 kB / 0.5655 GB, free: 14.54 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3454, allocations: 128 / 0.5655 GB, free: 14.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03601/0.3815, allocations: 2.02 MB / 0.5675 GB, free: 12.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.65, allocations: 4.062 kB / 0.5675 GB, free: 12.62 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv","/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_trunk_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: 14.630204383749515]