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.001399/0.0014, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.001278/0.001279, allocations: 183 kB / 18.72 MB, free: 4.332 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.431/1.431, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.2203/0.2203, allocations: 44.19 MB / 336.8 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003219/0.003219, allocations: 67.88 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3254, allocations: 60.81 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001533/0.3269, allocations: 0.493 MB / 0.5189 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.328, allocations: 0.7798 MB / 0.5196 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.516e-05/0.328, allocations: 0 / 0.5196 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.59e-05/0.328, allocations: 1 kB / 0.5196 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001592/0.3282, allocations: 2.875 kB / 0.5196 GB, free: 2.418 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.0006728/0.3289, allocations: 59.16 kB / 0.5197 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.212e-05/0.329, allocations: 6.156 kB / 0.5197 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.863e-05/0.329, allocations: 6.844 kB / 0.5197 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.819e-05/0.3291, allocations: 5.797 kB / 0.5197 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.9e-05/0.3291, allocations: 2.438 kB / 0.5197 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.226e-06/0.3292, allocations: 0 / 0.5197 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.3293, allocations: 63.5 kB / 0.5198 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.294e-06/0.3293, allocations: 1.25 kB / 0.5198 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.774e-05/0.3294, allocations: 0 / 0.5198 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001366/0.3295, allocations: 51.59 kB / 0.5198 GB, free: 2.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3295, allocations: 0 / 0.5198 GB, free: 2.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3295, allocations: 0 / 0.5198 GB, free: 2.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.3295, allocations: 1.094 kB / 0.5198 GB, free: 2.34 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.000268/0.3298, allocations: 353.2 kB / 0.5202 GB, free: 1.953 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.3299, allocations: 13.25 kB / 0.5202 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.779e-05/0.3299, allocations: 31.59 kB / 0.5202 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.387e-05/0.3299, allocations: 6.094 kB / 0.5202 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.485e-05/0.33, allocations: 163.1 kB / 0.5204 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.33, allocations: 384 / 0.5204 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.175e-06/0.33, allocations: 5.469 kB / 0.5204 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.841e-05/0.3301, allocations: 37.69 kB / 0.5204 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.3301, allocations: 7.938 kB / 0.5204 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-06/0.3301, allocations: 1.25 kB / 0.5204 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3301, allocations: 0.6094 kB / 0.5204 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.512e-05/0.3301, allocations: 1.188 kB / 0.5204 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.393e-05/0.3302, allocations: 146 kB / 0.5206 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.357e-05/0.3303, allocations: 21.62 kB / 0.5206 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.262e-05/0.3303, allocations: 6.109 kB / 0.5206 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.3303, allocations: 0 / 0.5206 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.3303, allocations: 66.3 kB / 0.5207 GB, free: 1.359 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.382e-06/0.3303, allocations: 0 / 0.5207 GB, free: 1.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.3305, allocations: 69.78 kB / 0.5207 GB, free: 1.289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.3305, allocations: 78.94 kB / 0.5208 GB, free: 1.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.418e-05/0.3306, allocations: 96.53 kB / 0.5209 GB, free: 1.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.741e-06/0.3306, allocations: 25.7 kB / 0.5209 GB, free: 1.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.011e-05/0.3306, allocations: 81.97 kB / 0.521 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.266e-05/0.3306, allocations: 7.953 kB / 0.521 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.438e-05/0.3307, allocations: 12.98 kB / 0.521 GB, free: 0.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.601e-05/0.3307, allocations: 312.8 kB / 0.5213 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.045e-05/0.3307, allocations: 1.125 kB / 0.5213 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.805e-06/0.3307, allocations: 5.75 kB / 0.5213 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.947e-05/0.3308, allocations: 64.53 kB / 0.5214 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3308, allocations: 0 / 0.5214 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.701e-05/0.3308, allocations: 64.44 kB / 0.5214 GB, free: 0.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.3309, allocations: 36.59 kB / 0.5215 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3309, allocations: 0.6094 kB / 0.5215 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.3309, allocations: 0 / 0.5215 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.3309, allocations: 1.375 kB / 0.5215 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.3309, allocations: 0.75 kB / 0.5215 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.953e-05/0.3309, allocations: 1.438 kB / 0.5215 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-06/0.3309, allocations: 0 / 0.5215 GB, free: 476 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.625e-05/0.331, allocations: 139.8 kB / 0.5216 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.027e-06/0.331, allocations: 7.969 kB / 0.5216 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.378e-06/0.331, allocations: 9.297 kB / 0.5216 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.331, allocations: 0 / 0.5216 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.331, allocations: 0.6094 kB / 0.5216 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.331, allocations: 5.156 kB / 0.5216 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.368e-05/0.3311, allocations: 145.2 kB / 0.5218 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3311, allocations: 1.891 kB / 0.5218 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-07/0.3311, allocations: 3.938 kB / 0.5218 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.3311, allocations: 3.938 kB / 0.5218 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.523e-06/0.3311, allocations: 2.031 kB / 0.5218 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3311, allocations: 4 kB / 0.5218 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3311, allocations: 1.156 kB / 0.5218 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.322e-05/0.3312, allocations: 89.2 kB / 0.5219 GB, free: 0 / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.639e-05/0.3313, allocations: 85.89 kB / 0.522 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.3313, allocations: 9.609 kB / 0.522 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.248e-05/0.3313, allocations: 4.875 kB / 0.522 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.058e-05/0.3314, allocations: 1.844 kB / 0.522 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.3314, allocations: 4.031 kB / 0.522 GB, free: 15.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.061e-05/0.3314, allocations: 80.98 kB / 0.5221 GB, free: 15.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3314, allocations: 1 kB / 0.5221 GB, free: 15.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002312/0.3317, allocations: 19.06 kB / 0.5221 GB, free: 15.8 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.0007438/0.3324, allocations: 0.707 MB / 0.5228 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001034/0.3325, allocations: 65.88 kB / 0.5228 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3325, allocations: 0.9062 kB / 0.5228 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.176e-05/0.3326, allocations: 56.89 kB / 0.5229 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.3327, allocations: 4.141 kB / 0.5229 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000332/0.3331, allocations: 118.4 kB / 0.523 GB, free: 14.87 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.3334, allocations: 0.6801 MB / 0.5237 GB, free: 14.17 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.406e-06/0.3334, allocations: 1.25 kB / 0.5237 GB, free: 14.17 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.002e-05/0.3334, allocations: 7.438 kB / 0.5237 GB, free: 14.16 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3334, allocations: 1.562 kB / 0.5237 GB, free: 14.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.3587, allocations: 1.481 MB / 0.5251 GB, free: 13.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.19/8.548, allocations: 8.062 kB / 0.5251 GB, free: 13.71 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