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.001136/0.001136, allocations: 109.9 kB / 16.41 MB, free: 6.445 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.001185/0.001185, allocations: 187.2 kB / 17.34 MB, free: 5.738 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.235/1.235, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.1866/0.1866, allocations: 43.53 MB / 314.1 MB, free: 468 kB / 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.001445/0.001445, allocations: 67.91 kB / 441.3 MB, free: 6.211 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.09208, allocations: 57.8 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001493/0.0936, allocations: 490.8 kB / 499.6 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.09474, allocations: 0.7766 MB / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.269e-05/0.09478, allocations: 4 kB / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.228e-05/0.09481, allocations: 0 / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.09498, allocations: 11.92 kB / 0.4886 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005709/0.09556, allocations: 66.28 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.731e-05/0.09562, allocations: 3.938 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.98e-05/0.09566, allocations: 4 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.411e-05/0.09568, allocations: 0 / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.462e-05/0.09576, allocations: 11.92 kB / 0.4887 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.642e-06/0.09577, allocations: 0 / 0.4887 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.09589, allocations: 51.95 kB / 0.4888 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.984e-06/0.09591, allocations: 4 kB / 0.4888 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.789e-05/0.09594, allocations: 3.984 kB / 0.4888 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.09606, allocations: 47.88 kB / 0.4888 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.09607, allocations: 0 / 0.4888 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09608, allocations: 3.938 kB / 0.4888 GB, free: 10.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.09609, allocations: 0 / 0.4888 GB, free: 10.87 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.0002971/0.09639, allocations: 364.5 kB / 0.4892 GB, free: 10.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.09643, allocations: 15.89 kB / 0.4892 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.954e-05/0.09647, allocations: 30.75 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.179e-05/0.09649, allocations: 0.9375 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.291e-05/0.09659, allocations: 168.4 kB / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.09661, allocations: 384 / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-06/0.09662, allocations: 4.375 kB / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.767e-05/0.09669, allocations: 26.27 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.383e-06/0.09671, allocations: 3.938 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-06/0.09672, allocations: 0 / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.09673, allocations: 4 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.531e-05/0.09675, allocations: 3.938 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001148/0.09687, allocations: 153.7 kB / 0.4896 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.8e-05/0.09691, allocations: 18.61 kB / 0.4896 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.28e-05/0.09693, allocations: 4.859 kB / 0.4896 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.072e-06/0.09694, allocations: 0 / 0.4896 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.09698, allocations: 60.33 kB / 0.4896 GB, free: 9.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.09699, allocations: 0 / 0.4896 GB, free: 9.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000146/0.09714, allocations: 75.27 kB / 0.4897 GB, free: 9.762 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.09719, allocations: 81.23 kB / 0.4898 GB, free: 9.664 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.4e-05/0.09725, allocations: 89.86 kB / 0.4899 GB, free: 9.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.09727, allocations: 25.7 kB / 0.4899 GB, free: 9.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.468e-05/0.0973, allocations: 84.14 kB / 0.49 GB, free: 9.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.175e-05/0.09732, allocations: 0 / 0.49 GB, free: 9.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.489e-05/0.09735, allocations: 9.719 kB / 0.49 GB, free: 9.434 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.964e-05/0.09744, allocations: 322.8 kB / 0.4903 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.888e-06/0.09746, allocations: 4.125 kB / 0.4903 GB, free: 9.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.841e-06/0.09747, allocations: 0 / 0.4903 GB, free: 9.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.828e-05/0.09751, allocations: 60.27 kB / 0.4903 GB, free: 9.031 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.09752, allocations: 0 / 0.4903 GB, free: 9.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.867e-05/0.09759, allocations: 67.28 kB / 0.4904 GB, free: 8.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.09763, allocations: 37.62 kB / 0.4904 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.09764, allocations: 7.922 kB / 0.4905 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.09766, allocations: 4 kB / 0.4905 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.09766, allocations: 0 / 0.4905 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.09767, allocations: 4.094 kB / 0.4905 GB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.503e-05/0.09769, allocations: 0 / 0.4905 GB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.0977, allocations: 4 kB / 0.4905 GB, free: 8.891 MB / 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 7.128e-05/0.09778, allocations: 139.5 kB / 0.4906 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.167e-05/0.0978, allocations: 7.922 kB / 0.4906 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.036e-05/0.09781, allocations: 7.109 kB / 0.4906 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.09782, allocations: 0 / 0.4906 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.09782, allocations: 0 / 0.4906 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.09783, allocations: 0 / 0.4906 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.359e-05/0.09792, allocations: 153.6 kB / 0.4908 GB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.09793, allocations: 4 kB / 0.4908 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.09793, allocations: 0 / 0.4908 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.09794, allocations: 3.938 kB / 0.4908 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.09795, allocations: 0 / 0.4908 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.09796, allocations: 7.984 kB / 0.4908 GB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.09796, allocations: 0 / 0.4908 GB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.576e-05/0.09805, allocations: 90.78 kB / 0.4909 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.707e-05/0.09809, allocations: 85.12 kB / 0.4909 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.09811, allocations: 3.938 kB / 0.4909 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.081e-05/0.09813, allocations: 0 / 0.4909 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.058e-05/0.09814, allocations: 4 kB / 0.491 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.09815, allocations: 4 kB / 0.491 GB, free: 8.277 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.624e-05/0.09818, allocations: 75.28 kB / 0.491 GB, free: 8.203 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09819, allocations: 0 / 0.491 GB, free: 8.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.09841, allocations: 15.94 kB / 0.491 GB, free: 8.188 MB / 382.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.0005352/0.09895, allocations: 0.7175 MB / 0.4917 GB, free: 7.445 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.13e-05/0.09904, allocations: 63.34 kB / 0.4918 GB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.09905, allocations: 0 / 0.4918 GB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.138e-05/0.09909, allocations: 55.41 kB / 0.4919 GB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.09922, allocations: 7.75 kB / 0.4919 GB, free: 7.301 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002664/0.09949, allocations: 126.4 kB / 0.492 GB, free: 7.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.0997, allocations: 0.669 MB / 0.4926 GB, free: 6.441 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.716e-06/0.09971, allocations: 4.109 kB / 0.4926 GB, free: 6.438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.898e-05/0.09974, allocations: 15.44 kB / 0.4927 GB, free: 6.422 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.09974, allocations: 3.938 kB / 0.4927 GB, free: 6.418 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01657/0.1163, allocations: 1.477 MB / 0.4941 GB, free: 4.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.462/7.579, allocations: 3.938 kB / 0.4941 GB, free: 4.926 MB / 382.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