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.001474/0.001474, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.0009939/0.0009939, allocations: 194 kB / 18.12 MB, free: 5.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.356/1.356, allocations: 222.9 MB / 241.8 MB, free: 13.84 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.2021/0.2021, allocations: 44.17 MB / 336.1 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 64.28 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1198, allocations: 60.83 MB / 468.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001903/0.1218, allocations: 0.537 MB / 469.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.1231, allocations: 0.7635 MB / 469.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.229e-05/0.1231, allocations: 0 / 469.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.693e-05/0.1232, allocations: 3.938 kB / 469.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.1233, allocations: 11.98 kB / 469.9 MB, free: 13.41 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.0006591/0.124, allocations: 46.39 kB / 470 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.237e-05/0.124, allocations: 4 kB / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.014e-05/0.1241, allocations: 0 / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.167e-05/0.1241, allocations: 0 / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.872e-05/0.1242, allocations: 4 kB / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.1242, allocations: 0 / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.1244, allocations: 55.95 kB / 470 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.082e-05/0.1244, allocations: 3.984 kB / 470.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.922e-05/0.1244, allocations: 7.938 kB / 470.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000132/0.1246, allocations: 47.94 kB / 470.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1246, allocations: 0 / 470.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1246, allocations: 4 kB / 470.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1246, allocations: 3.938 kB / 470.1 MB, free: 13.24 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.0004006/0.125, allocations: 351.9 kB / 470.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1251, allocations: 11.97 kB / 470.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.008e-05/0.1251, allocations: 30.75 kB / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.784e-05/0.1251, allocations: 0.9375 kB / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.1253, allocations: 168.4 kB / 470.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.1253, allocations: 8.375 kB / 470.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.1253, allocations: 384 / 470.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.593e-05/0.1254, allocations: 30.27 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.1254, allocations: 3.938 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.1254, allocations: 0 / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.1254, allocations: 0 / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.223e-05/0.1255, allocations: 0 / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001491/0.1256, allocations: 149.7 kB / 470.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.736e-05/0.1257, allocations: 30.45 kB / 470.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.637e-05/0.1257, allocations: 4.859 kB / 470.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.232e-06/0.1257, allocations: 64 / 470.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/0.1258, allocations: 64.27 kB / 470.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1258, allocations: 0 / 470.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001905/0.126, allocations: 71.27 kB / 471 MB, free: 12.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.126, allocations: 77.11 kB / 471.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.001e-05/0.1261, allocations: 102 kB / 471.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.1261, allocations: 25.7 kB / 471.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.614e-05/0.1262, allocations: 80.14 kB / 471.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.1262, allocations: 3.906 kB / 471.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/0.1262, allocations: 13.72 kB / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1263, allocations: 314.8 kB / 471.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.1264, allocations: 0 / 471.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.791e-06/0.1264, allocations: 0 / 471.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.95e-05/0.1264, allocations: 68.45 kB / 471.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1264, allocations: 0 / 471.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.552e-05/0.1265, allocations: 63.34 kB / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.728e-05/0.1266, allocations: 37.62 kB / 471.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1266, allocations: 7.984 kB / 471.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.1266, allocations: 0 / 471.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1266, allocations: 0 / 471.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1266, allocations: 0 / 471.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.731e-05/0.1266, allocations: 288 / 471.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.1266, allocations: 32 / 471.8 MB, free: 11.27 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 0.0001028/0.1268, allocations: 143.5 kB / 471.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.1268, allocations: 3.938 kB / 471.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.519e-05/0.1268, allocations: 7.078 kB / 471.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1268, allocations: 7.922 kB / 472 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1268, allocations: 0 / 472 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.1268, allocations: 4 kB / 472 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.1269, allocations: 149.6 kB / 472.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1269, allocations: 0 / 472.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1269, allocations: 0 / 472.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.127, allocations: 7.938 kB / 472.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.127, allocations: 4 kB / 472.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.127, allocations: 7.922 kB / 472.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.127, allocations: 0 / 472.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.719e-05/0.1271, allocations: 90.78 kB / 472.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/0.1271, allocations: 77.11 kB / 472.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.1272, allocations: 7.922 kB / 472.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.162e-05/0.1272, allocations: 4.031 kB / 472.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.945e-05/0.1272, allocations: 0 / 472.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/0.1272, allocations: 4 kB / 472.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.247e-05/0.1272, allocations: 75.28 kB / 472.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1273, allocations: 0 / 472.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.1275, allocations: 24 kB / 472.4 MB, free: 10.56 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.0006676/0.1282, allocations: 0.7144 MB / 473.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.1283, allocations: 67.34 kB / 473.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1283, allocations: 0 / 473.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.325e-05/0.1283, allocations: 51.41 kB / 473.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.1285, allocations: 4 kB / 473.2 MB, free: 9.699 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.0003722/0.1289, allocations: 116.3 kB / 473.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.1291, allocations: 0.6811 MB / 474 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.057e-05/0.1291, allocations: 0 / 474 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.299e-05/0.1292, allocations: 11.44 kB / 474 MB, free: 8.824 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1292, allocations: 0 / 474 MB, free: 8.824 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2215/0.3507, allocations: 1.348 MB / 475.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/0.3509, allocations: 236.3 kB / 475.6 MB, free: 7.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.209, allocations: 0 / 475.6 MB, free: 7.297 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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