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.0006826/0.0006826, allocations: 93.42 kB / 17.35 MB, free: 6.375 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.000763/0.000763, allocations: 179.3 kB / 18.26 MB, free: 5.52 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.294/1.294, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1858/0.1858, allocations: 44.26 MB / 337.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002905, allocations: 11.98 kB / 410.4 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1124, allocations: 61.93 MB / 472.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006425/0.113, allocations: 207 kB / 472.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1144, allocations: 0.7635 MB / 473.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.419e-05/0.1144, allocations: 0 / 473.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.438e-05/0.1144, allocations: 8 kB / 473.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.1146, allocations: 3.938 kB / 473.3 MB, free: 12.3 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.0006522/0.1153, allocations: 46.23 kB / 473.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.561e-05/0.1153, allocations: 4 kB / 473.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.655e-05/0.1153, allocations: 0 / 473.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.775e-05/0.1154, allocations: 7.938 kB / 473.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.713e-05/0.1155, allocations: 7.984 kB / 473.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.885e-06/0.1155, allocations: 0 / 473.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.1156, allocations: 51.95 kB / 473.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.015e-06/0.1156, allocations: 0 / 473.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.802e-05/0.1157, allocations: 25.7 kB / 473.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.1158, allocations: 59.86 kB / 473.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1158, allocations: 0 / 473.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1158, allocations: 0 / 473.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.1158, allocations: 0 / 473.5 MB, free: 12.1 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.0003508/0.1162, allocations: 353.3 kB / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.1162, allocations: 8.031 kB / 473.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.12e-05/0.1163, allocations: 34.69 kB / 473.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.341e-05/0.1163, allocations: 0.9375 kB / 473.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.1164, allocations: 168.4 kB / 474.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.1164, allocations: 4.375 kB / 474.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.1165, allocations: 384 / 474.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.017e-05/0.1165, allocations: 34.25 kB / 474.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.1166, allocations: 3.938 kB / 474.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.1166, allocations: 0 / 474.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.1166, allocations: 0 / 474.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.558e-05/0.1166, allocations: 0 / 474.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001499/0.1168, allocations: 153.7 kB / 474.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.408e-05/0.1168, allocations: 26.45 kB / 474.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.706e-05/0.1168, allocations: 8.953 kB / 474.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.762e-06/0.1169, allocations: 0 / 474.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.1169, allocations: 56.27 kB / 474.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1169, allocations: 0 / 474.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001639/0.1171, allocations: 71.33 kB / 474.4 MB, free: 11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.1171, allocations: 81.05 kB / 474.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.727e-05/0.1172, allocations: 97.98 kB / 474.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.1172, allocations: 25.7 kB / 474.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.1173, allocations: 80.14 kB / 474.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.612e-05/0.1173, allocations: 7.844 kB / 474.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.06e-05/0.1173, allocations: 9.719 kB / 474.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1174, allocations: 318.8 kB / 475 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.277e-06/0.1174, allocations: 4 kB / 475 MB, free: 10.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.38e-06/0.1174, allocations: 0 / 475 MB, free: 10.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.077e-05/0.1175, allocations: 64.45 kB / 475.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1175, allocations: 0 / 475.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.465e-05/0.1176, allocations: 63.34 kB / 475.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.1176, allocations: 37.62 kB / 475.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.1176, allocations: 0 / 475.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.879e-06/0.1177, allocations: 0 / 475.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.395e-06/0.1177, allocations: 4 kB / 475.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.1177, allocations: 0 / 475.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.581e-05/0.1177, allocations: 288 / 475.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.1177, allocations: 8.031 kB / 475.2 MB, free: 10.12 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.614e-05/0.1178, allocations: 135.5 kB / 475.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-06/0.1178, allocations: 3.938 kB / 475.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.201e-05/0.1178, allocations: 7.078 kB / 475.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1178, allocations: 0 / 475.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1178, allocations: 3.984 kB / 475.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1179, allocations: 0 / 475.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.937e-05/0.118, allocations: 153.6 kB / 475.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.118, allocations: 0 / 475.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.118, allocations: 4 kB / 475.5 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.118, allocations: 3.938 kB / 475.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.118, allocations: 0 / 475.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.118, allocations: 0 / 475.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.118, allocations: 4 kB / 475.5 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.63e-05/0.1181, allocations: 90.77 kB / 475.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.1182, allocations: 81.11 kB / 475.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.1182, allocations: 7.922 kB / 475.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.078e-05/0.1182, allocations: 4.031 kB / 475.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.51e-05/0.1182, allocations: 7.938 kB / 475.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-06/0.1182, allocations: 0 / 475.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.037e-05/0.1183, allocations: 79.28 kB / 475.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.704e-06/0.1183, allocations: 0 / 475.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002082/0.1185, allocations: 19.94 kB / 475.8 MB, free: 9.422 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.0006334/0.1191, allocations: 0.7126 MB / 476.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.693e-05/0.1192, allocations: 63.34 kB / 476.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1192, allocations: 0 / 476.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.032e-05/0.1193, allocations: 55.41 kB / 476.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001368/0.1194, allocations: 4 kB / 476.6 MB, free: 8.562 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.0003276/0.1198, allocations: 120.4 kB / 476.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.12, allocations: 0.6733 MB / 477.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.005e-05/0.12, allocations: 0 / 477.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.347e-05/0.1201, allocations: 15.42 kB / 477.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1201, allocations: 0 / 477.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1269/0.247, allocations: 1.269 MB / 478.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/0.2472, allocations: 224.5 kB / 478.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.205, allocations: 3.938 kB / 478.9 MB, free: 6.27 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