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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001261/0.001261, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.334/1.334, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2062/0.2062, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 71.88 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3676/0.369, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001614/0.3706, allocations: 489.1 kB / 0.5189 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.3717, allocations: 0.7772 MB / 0.5196 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.512e-05/0.3718, allocations: 4 kB / 0.5196 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.268e-05/0.3718, allocations: 1.344 kB / 0.5196 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.372, allocations: 5.844 kB / 0.5196 GB, free: 2.438 MB / 382.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.0006368/0.3726, allocations: 64.33 kB / 0.5197 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.703e-05/0.3727, allocations: 6.141 kB / 0.5197 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.469e-05/0.3727, allocations: 5.812 kB / 0.5197 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.886e-05/0.3727, allocations: 1.641 kB / 0.5197 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.035e-05/0.3728, allocations: 2.906 kB / 0.5197 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.3729, allocations: 1.219 kB / 0.5197 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.373, allocations: 58.56 kB / 0.5198 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.745e-06/0.373, allocations: 0 / 0.5198 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.171e-05/0.3731, allocations: 5.188 kB / 0.5198 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.3732, allocations: 51.38 kB / 0.5198 GB, free: 2.359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3732, allocations: 0 / 0.5198 GB, free: 2.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3732, allocations: 0 / 0.5198 GB, free: 2.359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.3732, allocations: 1.25 kB / 0.5198 GB, free: 2.359 MB / 382.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.0002858/0.3735, allocations: 358.6 kB / 0.5202 GB, free: 1.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3736, allocations: 14.34 kB / 0.5202 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.461e-05/0.3736, allocations: 31.88 kB / 0.5202 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.408e-05/0.3736, allocations: 0.9375 kB / 0.5202 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.761e-05/0.3737, allocations: 166.9 kB / 0.5204 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.3737, allocations: 1.5 kB / 0.5204 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.642e-06/0.3737, allocations: 4.312 kB / 0.5204 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.781e-05/0.3738, allocations: 30.56 kB / 0.5204 GB, free: 1.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3738, allocations: 4.641 kB / 0.5204 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.3738, allocations: 1.438 kB / 0.5204 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3738, allocations: 0 / 0.5204 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.772e-05/0.3739, allocations: 2.094 kB / 0.5204 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001002/0.374, allocations: 148.6 kB / 0.5206 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.516e-05/0.374, allocations: 20.61 kB / 0.5206 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.531e-05/0.374, allocations: 10.91 kB / 0.5206 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.374, allocations: 1.031 kB / 0.5206 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.3741, allocations: 58.39 kB / 0.5206 GB, free: 1.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.743e-06/0.3741, allocations: 0 / 0.5206 GB, free: 1.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001605/0.3742, allocations: 73.41 kB / 0.5207 GB, free: 1.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.3743, allocations: 83.27 kB / 0.5208 GB, free: 1.215 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.579e-05/0.3743, allocations: 91.59 kB / 0.5209 GB, free: 1.117 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.3744, allocations: 27.11 kB / 0.5209 GB, free: 1.086 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.173e-05/0.3744, allocations: 80.84 kB / 0.521 GB, free: 1.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.3744, allocations: 3.953 kB / 0.521 GB, free: 1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.367e-05/0.3744, allocations: 13.72 kB / 0.521 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.909e-05/0.3745, allocations: 315.7 kB / 0.5213 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.729e-06/0.3745, allocations: 5 kB / 0.5213 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.322e-06/0.3745, allocations: 6.062 kB / 0.5213 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.888e-05/0.3745, allocations: 60.7 kB / 0.5214 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3745, allocations: 0 / 0.5214 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.705e-05/0.3746, allocations: 61.2 kB / 0.5214 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.3746, allocations: 39.44 kB / 0.5215 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3746, allocations: 1.188 kB / 0.5215 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.3747, allocations: 0.7969 kB / 0.5215 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3747, allocations: 0 / 0.5215 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.3747, allocations: 5.188 kB / 0.5215 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.58e-05/0.3747, allocations: 0 / 0.5215 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.3747, allocations: 1.766 kB / 0.5215 GB, free: 496 kB / 382.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 4.743e-05/0.3748, allocations: 138.7 kB / 0.5216 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/0.3748, allocations: 6.547 kB / 0.5216 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.427e-06/0.3748, allocations: 7.078 kB / 0.5216 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3748, allocations: 1.406 kB / 0.5216 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3748, allocations: 3.984 kB / 0.5216 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3748, allocations: 4.688 kB / 0.5216 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.256e-05/0.3749, allocations: 149 kB / 0.5218 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3749, allocations: 1.812 kB / 0.5218 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.172e-06/0.3749, allocations: 4 kB / 0.5218 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3749, allocations: 3.938 kB / 0.5218 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.3749, allocations: 2.297 kB / 0.5218 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3749, allocations: 0 / 0.5218 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3749, allocations: 1.188 kB / 0.5218 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.037e-05/0.375, allocations: 88.72 kB / 0.5219 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.3751, allocations: 91.25 kB / 0.522 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.3751, allocations: 4.594 kB / 0.522 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.168e-05/0.3751, allocations: 5.375 kB / 0.522 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.228e-05/0.3751, allocations: 0.5625 kB / 0.522 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.3751, allocations: 5.781 kB / 0.522 GB, free: 15.9 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.509e-05/0.3752, allocations: 76.25 kB / 0.522 GB, free: 15.83 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3752, allocations: 0 / 0.522 GB, free: 15.83 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.3754, allocations: 19.58 kB / 0.5221 GB, free: 15.82 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.0006567/0.3761, allocations: 0.7173 MB / 0.5228 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.3762, allocations: 57.97 kB / 0.5228 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3762, allocations: 1.344 kB / 0.5228 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.649e-05/0.3762, allocations: 58.91 kB / 0.5229 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.3764, allocations: 2.25 kB / 0.5229 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003221/0.3767, allocations: 118.9 kB / 0.523 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.377, allocations: 0.6756 MB / 0.5237 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.258e-06/0.377, allocations: 1.5 kB / 0.5237 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.119e-05/0.377, allocations: 8.188 kB / 0.5237 GB, free: 14.18 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.377, allocations: 1.438 kB / 0.5237 GB, free: 14.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.3987, allocations: 1.475 MB / 0.5251 GB, free: 13.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.637/8.036, allocations: 10.5 kB / 0.5251 GB, free: 13.74 MB / 398.1 MB (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) 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) Reference file matches