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.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.001266/0.001266, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001698/0.001698, allocations: 210.7 kB / 23.73 MB, free: 4.16 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.572/1.572, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3153/0.3153, allocations: 44.94 MB / 358.8 MB, free: 6.055 MB / 286.1 MB " [Timeout remaining time 179] 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.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: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002336/0.002336, allocations: 59.91 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3358, allocations: 65.48 MB / 0.5569 GB, free: 7.488 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001719/0.3376, allocations: 486.2 kB / 0.5574 GB, free: 7.133 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.339, allocations: 0.8643 MB / 0.5583 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.487e-05/0.339, allocations: 4 kB / 0.5583 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.331e-05/0.339, allocations: 3.938 kB / 0.5583 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.3392, allocations: 11.98 kB / 0.5583 GB, free: 6.312 MB / 398.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.0005932/0.3398, allocations: 56.67 kB / 0.5583 GB, free: 6.262 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.782e-05/0.3398, allocations: 4 kB / 0.5583 GB, free: 6.258 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.723e-05/0.3399, allocations: 0 / 0.5583 GB, free: 6.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.557e-05/0.3399, allocations: 0 / 0.5583 GB, free: 6.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.51e-05/0.3399, allocations: 7.969 kB / 0.5583 GB, free: 6.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.116e-06/0.3399, allocations: 4 kB / 0.5583 GB, free: 6.246 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.3401, allocations: 59.89 kB / 0.5584 GB, free: 6.188 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.187e-06/0.3401, allocations: 0 / 0.5584 GB, free: 6.188 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.043e-05/0.3401, allocations: 7.938 kB / 0.5584 GB, free: 6.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.3403, allocations: 47.73 kB / 0.5585 GB, free: 6.137 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3403, allocations: 0 / 0.5585 GB, free: 6.137 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3403, allocations: 0 / 0.5585 GB, free: 6.137 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.3403, allocations: 3.938 kB / 0.5585 GB, free: 6.133 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.0003582/0.3407, allocations: 282.2 kB / 0.5587 GB, free: 5.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3407, allocations: 12.03 kB / 0.5587 GB, free: 5.809 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.812e-05/0.3407, allocations: 30.75 kB / 0.5588 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.266e-05/0.3408, allocations: 4.875 kB / 0.5588 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.3409, allocations: 106.5 kB / 0.5589 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.3409, allocations: 8.375 kB / 0.5589 GB, free: 5.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-06/0.3409, allocations: 4.375 kB / 0.5589 GB, free: 5.625 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.025e-05/0.341, allocations: 55.97 kB / 0.5589 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.341, allocations: 3.938 kB / 0.5589 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.162e-06/0.341, allocations: 0 / 0.5589 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.341, allocations: 0 / 0.5589 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.8e-05/0.341, allocations: 29.64 kB / 0.559 GB, free: 5.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001416/0.3412, allocations: 124.8 kB / 0.5591 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.907e-05/0.3412, allocations: 44.31 kB / 0.5591 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.108e-05/0.3413, allocations: 30.56 kB / 0.5592 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.093e-06/0.3413, allocations: 4 kB / 0.5592 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.508e-05/0.3413, allocations: 64.33 kB / 0.5592 GB, free: 5.176 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3413, allocations: 0 / 0.5592 GB, free: 5.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001956/0.3415, allocations: 122.7 kB / 0.5593 GB, free: 5.031 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/0.3416, allocations: 77.11 kB / 0.5594 GB, free: 4.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.626e-05/0.3417, allocations: 93.86 kB / 0.5595 GB, free: 4.836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.3417, allocations: 29.7 kB / 0.5595 GB, free: 4.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.279e-05/0.3417, allocations: 84.12 kB / 0.5596 GB, free: 4.715 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.191e-05/0.3417, allocations: 0 / 0.5596 GB, free: 4.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-05/0.3418, allocations: 17.95 kB / 0.5596 GB, free: 4.691 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3419, allocations: 314.8 kB / 0.5599 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.483e-05/0.3419, allocations: 25.7 kB / 0.56 GB, free: 4.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.235e-05/0.342, allocations: 33.7 kB / 0.56 GB, free: 4.305 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.838e-05/0.342, allocations: 60.27 kB / 0.56 GB, free: 4.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.342, allocations: 0 / 0.56 GB, free: 4.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.642e-05/0.3421, allocations: 93.03 kB / 0.5601 GB, free: 4.121 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.3422, allocations: 33.64 kB / 0.5602 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.3422, allocations: 0 / 0.5602 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.3422, allocations: 0 / 0.5602 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.715e-06/0.3422, allocations: 8.078 kB / 0.5602 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.3422, allocations: 0 / 0.5602 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.072e-05/0.3422, allocations: 8 kB / 0.5602 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.3422, allocations: 3.984 kB / 0.5602 GB, free: 4.062 MB / 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 9.236e-05/0.3423, allocations: 135.5 kB / 0.5603 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.098e-05/0.3423, allocations: 11.88 kB / 0.5603 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.277e-05/0.3423, allocations: 3 kB / 0.5603 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3423, allocations: 3.938 kB / 0.5603 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3423, allocations: 0 / 0.5603 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.3423, allocations: 0 / 0.5603 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.3424, allocations: 124.8 kB / 0.5605 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3424, allocations: 0 / 0.5605 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.52e-07/0.3424, allocations: 0 / 0.5605 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3424, allocations: 3.938 kB / 0.5605 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.3424, allocations: 0 / 0.5605 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3424, allocations: 0 / 0.5605 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3425, allocations: 0 / 0.5605 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001232/0.3426, allocations: 128.5 kB / 0.5606 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-06/0.3426, allocations: 3.953 kB / 0.5606 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.3426, allocations: 7.938 kB / 0.5606 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.116e-05/0.3426, allocations: 0 / 0.5606 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.157e-05/0.3426, allocations: 8.031 kB / 0.5606 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.3426, allocations: 0 / 0.5606 GB, free: 3.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.073e-05/0.3427, allocations: 75.28 kB / 0.5607 GB, free: 3.477 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3427, allocations: 0 / 0.5607 GB, free: 3.477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002187/0.3429, allocations: 23.92 kB / 0.5607 GB, free: 3.453 MB / 398.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.0007379/0.3436, allocations: 0.7506 MB / 0.5614 GB, free: 2.695 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.3437, allocations: 114.8 kB / 0.5615 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3437, allocations: 0 / 0.5615 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.25e-05/0.3438, allocations: 81.11 kB / 0.5616 GB, free: 2.461 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.3439, allocations: 8.125 kB / 0.5616 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003296/0.3443, allocations: 148.3 kB / 0.5618 GB, free: 2.262 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.568e-05/0.3443, allocations: 51.36 kB / 0.5618 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.074e-06/0.3443, allocations: 0 / 0.5618 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.206e-05/0.3443, allocations: 11.44 kB / 0.5618 GB, free: 2.18 MB / 398.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3443, allocations: 0 / 0.5618 GB, free: 2.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0291/0.3734, allocations: 2.03 MB / 0.5638 GB, free: 292 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.7, allocations: 0 / 0.5638 GB, free: 292 kB / 398.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.974377112928778]