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.00117/0.00117, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.00127/0.00127, allocations: 192 kB / 18.56 MB, free: 4.434 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.35/1.35, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2118/0.2118, allocations: 44.18 MB / 336.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 61.56 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1212, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002359/0.1236, allocations: 478.8 kB / 469.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.125, allocations: 0.784 MB / 470.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.96e-05/0.125, allocations: 0 / 470.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.746e-05/0.1251, allocations: 4 kB / 470.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.1253, allocations: 11.94 kB / 470.6 MB, free: 13.02 MB / 350.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.0007305/0.126, allocations: 43.83 kB / 470.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.986e-05/0.1261, allocations: 11.97 kB / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.591e-05/0.1262, allocations: 3.938 kB / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.287e-05/0.1262, allocations: 4 kB / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.1263, allocations: 4 kB / 470.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.039e-05/0.1263, allocations: 0 / 470.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.1265, allocations: 55.95 kB / 470.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.688e-06/0.1265, allocations: 0 / 470.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.566e-05/0.1265, allocations: 7.984 kB / 470.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.1267, allocations: 55.81 kB / 470.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1267, allocations: 0 / 470.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1267, allocations: 0 / 470.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1267, allocations: 0 / 470.8 MB, free: 12.84 MB / 350.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.0004084/0.1271, allocations: 353.3 kB / 471.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1272, allocations: 12.03 kB / 471.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.641e-05/0.1272, allocations: 34.75 kB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.715e-05/0.1273, allocations: 0.9375 kB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.1274, allocations: 160.4 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-06/0.1274, allocations: 4.375 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.223e-06/0.1274, allocations: 384 / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.885e-05/0.1275, allocations: 38.19 kB / 471.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.1275, allocations: 3.938 kB / 471.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.1275, allocations: 0 / 471.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1275, allocations: 0 / 471.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.983e-05/0.1276, allocations: 7.938 kB / 471.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001296/0.1277, allocations: 145.7 kB / 471.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.391e-05/0.1278, allocations: 30.58 kB / 471.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.1278, allocations: 4.859 kB / 471.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.84e-06/0.1278, allocations: 0 / 471.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.1278, allocations: 56.27 kB / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1278, allocations: 0 / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000181/0.128, allocations: 75.34 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.1281, allocations: 81.09 kB / 471.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.591e-05/0.1282, allocations: 93.98 kB / 471.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.1282, allocations: 25.7 kB / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.88e-05/0.1282, allocations: 84.08 kB / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.1282, allocations: 7.906 kB / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/0.1283, allocations: 9.719 kB / 472 MB, free: 11.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1284, allocations: 314.8 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.251e-05/0.1284, allocations: 4 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.074e-06/0.1284, allocations: 4.125 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.742e-05/0.1285, allocations: 64.25 kB / 472.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1285, allocations: 0 / 472.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.081e-05/0.1286, allocations: 63.34 kB / 472.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.1286, allocations: 35.98 kB / 472.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1286, allocations: 0 / 472.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.1286, allocations: 0 / 472.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.214e-06/0.1286, allocations: 3.984 kB / 472.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.1286, allocations: 0 / 472.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.71e-05/0.1287, allocations: 8.375 kB / 472.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.1287, allocations: 4 kB / 472.5 MB, free: 10.86 MB / 350.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 8.585e-05/0.1288, allocations: 131.5 kB / 472.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.1288, allocations: 7.938 kB / 472.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.309e-05/0.1288, allocations: 7.078 kB / 472.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1288, allocations: 0 / 472.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1288, allocations: 0 / 472.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1288, allocations: 0 / 472.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.206e-05/0.1289, allocations: 153.6 kB / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1289, allocations: 4 kB / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1289, allocations: 0 / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.129, allocations: 3.938 kB / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.129, allocations: 0 / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.129, allocations: 7.938 kB / 472.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.129, allocations: 0 / 472.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.781e-05/0.1291, allocations: 94.77 kB / 472.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.897e-05/0.1291, allocations: 77.11 kB / 473 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.1291, allocations: 11.97 kB / 473 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.08e-05/0.1292, allocations: 0 / 473 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.376e-05/0.1292, allocations: 4 kB / 473 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.1292, allocations: 3.984 kB / 473 MB, free: 10.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.439e-05/0.1292, allocations: 79.28 kB / 473.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1292, allocations: 3.938 kB / 473.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000224/0.1295, allocations: 16 kB / 473.1 MB, free: 10.16 MB / 350.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.0006321/0.1301, allocations: 0.7199 MB / 473.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.1302, allocations: 63.39 kB / 473.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1302, allocations: 0 / 473.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.928e-05/0.1303, allocations: 55.41 kB / 473.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.1304, allocations: 4 kB / 473.9 MB, free: 9.289 MB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+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.0003596/0.1308, allocations: 122.7 kB / 474 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.131, allocations: 0.6729 MB / 474.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.357e-06/0.131, allocations: 0 / 474.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.461e-05/0.1311, allocations: 7.438 kB / 474.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1311, allocations: 0 / 474.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1434/0.2745, allocations: 1.462 MB / 476.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.377/7.651, allocations: 12.91 kB / 476.2 MB, free: 7.004 MB / 350.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