Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_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.001181/0.001181, allocations: 102.6 kB / 16.27 MB, free: 5.93 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.001203/0.001204, allocations: 190.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2269/0.2269, allocations: 43.53 MB / 313.9 MB, free: 0.5156 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 61.31 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1221, allocations: 57.79 MB / 440.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001965/0.1241, allocations: 0.4896 MB / 441.1 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009819/0.1251, allocations: 0.7782 MB / 441.9 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.278e-05/0.1251, allocations: 0 / 441.9 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.437e-05/0.1252, allocations: 0 / 441.9 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.1253, allocations: 11.88 kB / 441.9 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005534/0.1259, allocations: 55.06 kB / 441.9 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.637e-05/0.126, allocations: 4 kB / 441.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.849e-05/0.126, allocations: 0 / 441.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.712e-05/0.126, allocations: 4 kB / 442 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.963e-05/0.1261, allocations: 11.97 kB / 442 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.337e-06/0.1261, allocations: 0 / 442 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.1263, allocations: 51.97 kB / 442 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.013e-05/0.1263, allocations: 0 / 442 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.921e-05/0.1263, allocations: 3.938 kB / 442 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001162/0.1264, allocations: 51.92 kB / 442.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1264, allocations: 7.922 kB / 442.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1264, allocations: 0 / 442.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1264, allocations: 0 / 442.1 MB, free: 5.344 MB / 318.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.0003359/0.1268, allocations: 357.5 kB / 442.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.1268, allocations: 11.89 kB / 442.4 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.28e-05/0.1269, allocations: 34.75 kB / 442.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.922e-05/0.1269, allocations: 0.9375 kB / 442.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.092e-05/0.127, allocations: 164.3 kB / 442.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.127, allocations: 4.312 kB / 442.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.127, allocations: 4.375 kB / 442.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.581e-05/0.1271, allocations: 30.27 kB / 442.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.1271, allocations: 3.938 kB / 442.7 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.1272, allocations: 8 kB / 442.7 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.1272, allocations: 3.984 kB / 442.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.583e-05/0.1272, allocations: 7.938 kB / 442.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.1273, allocations: 141.7 kB / 442.8 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.494e-05/0.1274, allocations: 14.67 kB / 442.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.324e-05/0.1274, allocations: 12.86 kB / 442.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.305e-06/0.1274, allocations: 0 / 442.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.1274, allocations: 64.25 kB / 442.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.031e-06/0.1274, allocations: 0 / 442.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001697/0.1276, allocations: 67.28 kB / 443 MB, free: 4.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.1277, allocations: 81.11 kB / 443.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.545e-05/0.1277, allocations: 97.84 kB / 443.2 MB, free: 4.031 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.398e-06/0.1277, allocations: 25.7 kB / 443.2 MB, free: 4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.76e-05/0.1278, allocations: 84.08 kB / 443.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.539e-05/0.1278, allocations: 256 / 443.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.1278, allocations: 17.72 kB / 443.3 MB, free: 3.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.778e-05/0.1279, allocations: 310.8 kB / 443.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-06/0.1279, allocations: 0 / 443.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.231e-06/0.1279, allocations: 4 kB / 443.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.336e-05/0.1279, allocations: 64.27 kB / 443.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1279, allocations: 0 / 443.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.381e-05/0.128, allocations: 67.33 kB / 443.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.128, allocations: 38.52 kB / 443.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.128, allocations: 0 / 443.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1281, allocations: 3.984 kB / 443.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1281, allocations: 0 / 443.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.1281, allocations: 0 / 443.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.7e-05/0.1281, allocations: 4 kB / 443.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.1281, allocations: 0 / 443.8 MB, free: 3.367 MB / 318.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 6.224e-05/0.1282, allocations: 139.5 kB / 443.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.1282, allocations: 11.94 kB / 443.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.225e-05/0.1282, allocations: 7.125 kB / 443.9 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.1282, allocations: 3.938 kB / 443.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1282, allocations: 0 / 443.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1282, allocations: 0 / 443.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.005e-05/0.1283, allocations: 149.6 kB / 444.1 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1283, allocations: 4 kB / 444.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1283, allocations: 0 / 444.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1283, allocations: 3.938 kB / 444.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.1283, allocations: 0 / 444.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1283, allocations: 0 / 444.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1283, allocations: 0 / 444.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.691e-05/0.1284, allocations: 98.77 kB / 444.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.813e-05/0.1284, allocations: 77.11 kB / 444.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.1285, allocations: 7.938 kB / 444.3 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.103e-05/0.1285, allocations: 4 kB / 444.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.236e-05/0.1285, allocations: 0 / 444.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.1285, allocations: 0 / 444.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.804e-05/0.1285, allocations: 79.31 kB / 444.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1285, allocations: 0 / 444.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000219/0.1288, allocations: 27.98 kB / 444.4 MB, free: 2.656 MB / 318.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.0004467/0.1292, allocations: 0.7019 MB / 445.1 MB, free: 1.949 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.614e-05/0.1293, allocations: 63.41 kB / 445.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1293, allocations: 0 / 445.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.002e-05/0.1293, allocations: 59.39 kB / 445.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.1295, allocations: 3.938 kB / 445.2 MB, free: 1.801 MB / 318.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003063/0.1298, allocations: 118.8 kB / 445.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.1299, allocations: 0.669 MB / 446 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.226e-06/0.1299, allocations: 0 / 446 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.942e-05/0.1299, allocations: 11.44 kB / 446 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.13, allocations: 0 / 446 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2792/0.4091, allocations: 1.466 MB / 447.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.442/7.851, allocations: 64 / 447.5 MB, free: 15.48 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches