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.001664/0.001664, allocations: 108.1 kB / 16.41 MB, free: 6.496 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.001836/0.001836, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.29/1.29, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.193/0.193, allocations: 43.53 MB / 314.1 MB, free: 444 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.001326/0.001326, allocations: 61.47 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09968/0.101, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001467/0.1025, allocations: 499 kB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.1036, allocations: 0.7766 MB / 0.4886 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.219e-05/0.1036, allocations: 4 kB / 0.4886 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.077e-05/0.1036, allocations: 0 / 0.4886 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.1038, allocations: 7.938 kB / 0.4886 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005096/0.1043, allocations: 66.25 kB / 0.4887 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.683e-05/0.1044, allocations: 0 / 0.4887 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.177e-05/0.1044, allocations: 4 kB / 0.4887 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.408e-05/0.1044, allocations: 3.938 kB / 0.4887 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.505e-05/0.1045, allocations: 11.94 kB / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-06/0.1045, allocations: 0 / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.1046, allocations: 51.94 kB / 0.4888 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.725e-06/0.1047, allocations: 0 / 0.4888 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.1047, allocations: 8 kB / 0.4888 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.1048, allocations: 47.92 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1048, allocations: 0 / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1048, allocations: 0 / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.1048, allocations: 0 / 0.4888 GB, free: 10.85 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.000319/0.1052, allocations: 361.1 kB / 0.4892 GB, free: 10.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.1052, allocations: 15.89 kB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.198e-05/0.1052, allocations: 30.75 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.997e-05/0.1053, allocations: 4.875 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.843e-05/0.1054, allocations: 164.4 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.1054, allocations: 384 / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.1054, allocations: 8.359 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.483e-05/0.1055, allocations: 26.27 kB / 0.4894 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.1055, allocations: 3.938 kB / 0.4894 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.272e-06/0.1055, allocations: 0 / 0.4894 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.095e-06/0.1055, allocations: 0 / 0.4894 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.691e-05/0.1055, allocations: 8 kB / 0.4894 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001085/0.1056, allocations: 141.7 kB / 0.4895 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.319e-05/0.1057, allocations: 30.53 kB / 0.4896 GB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.177e-05/0.1057, allocations: 4.859 kB / 0.4896 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.523e-06/0.1057, allocations: 0 / 0.4896 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.1058, allocations: 60.27 kB / 0.4896 GB, free: 9.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1058, allocations: 0 / 0.4896 GB, free: 9.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001459/0.1059, allocations: 71.39 kB / 0.4897 GB, free: 9.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.106, allocations: 81.17 kB / 0.4898 GB, free: 9.641 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.146e-05/0.106, allocations: 93.86 kB / 0.4899 GB, free: 9.539 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.1061, allocations: 25.7 kB / 0.4899 GB, free: 9.508 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.45e-05/0.1061, allocations: 84.14 kB / 0.49 GB, free: 9.422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/0.1061, allocations: 4 kB / 0.49 GB, free: 9.418 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.312e-05/0.1061, allocations: 9.719 kB / 0.49 GB, free: 9.402 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.302e-05/0.1062, allocations: 310.8 kB / 0.4903 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.021e-05/0.1063, allocations: 4 kB / 0.4903 GB, free: 9.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-06/0.1063, allocations: 8.109 kB / 0.4903 GB, free: 9.078 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.914e-05/0.1063, allocations: 60.27 kB / 0.4903 GB, free: 9.004 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1063, allocations: 0 / 0.4903 GB, free: 9.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.119e-05/0.1064, allocations: 63.41 kB / 0.4904 GB, free: 8.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.1064, allocations: 37.58 kB / 0.4904 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1064, allocations: 11.86 kB / 0.4905 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.1065, allocations: 3.984 kB / 0.4905 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.1065, allocations: 0 / 0.4905 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.1065, allocations: 4 kB / 0.4905 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.464e-05/0.1065, allocations: 4.094 kB / 0.4905 GB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1065, allocations: 4 kB / 0.4905 GB, free: 8.859 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.951e-05/0.1066, allocations: 139.5 kB / 0.4906 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.518e-06/0.1066, allocations: 3.938 kB / 0.4906 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.307e-06/0.1066, allocations: 3.125 kB / 0.4906 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1066, allocations: 0 / 0.4906 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.1066, allocations: 0 / 0.4906 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-06/0.1066, allocations: 0 / 0.4906 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.01e-05/0.1067, allocations: 153.7 kB / 0.4908 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1067, allocations: 4 kB / 0.4908 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1067, allocations: 0 / 0.4908 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1067, allocations: 3.938 kB / 0.4908 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.1068, allocations: 0 / 0.4908 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1068, allocations: 0 / 0.4908 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1068, allocations: 3.984 kB / 0.4908 GB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.479e-05/0.1069, allocations: 98.67 kB / 0.4909 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.013e-05/0.1069, allocations: 77.14 kB / 0.4909 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.1069, allocations: 11.94 kB / 0.4909 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.035e-05/0.1069, allocations: 0 / 0.4909 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.239e-05/0.107, allocations: 3.984 kB / 0.491 GB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.107, allocations: 0 / 0.491 GB, free: 8.254 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.732e-05/0.107, allocations: 79.28 kB / 0.491 GB, free: 8.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.107, allocations: 0 / 0.491 GB, free: 8.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002043/0.1072, allocations: 16 kB / 0.491 GB, free: 8.16 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.000531/0.1077, allocations: 0.713 MB / 0.4917 GB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.054e-05/0.1078, allocations: 63.33 kB / 0.4918 GB, free: 7.348 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1078, allocations: 0 / 0.4918 GB, free: 7.348 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.79e-05/0.1079, allocations: 59.41 kB / 0.4919 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.108, allocations: 0.7812 kB / 0.4919 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002638/0.1083, allocations: 122.6 kB / 0.492 GB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.1085, allocations: 0.669 MB / 0.4926 GB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.843e-06/0.1085, allocations: 0 / 0.4926 GB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.778e-05/0.1086, allocations: 15.56 kB / 0.4926 GB, free: 6.406 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1086, allocations: 0 / 0.4926 GB, free: 6.406 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03683/0.1454, allocations: 1.482 MB / 0.4941 GB, free: 4.914 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.8/7.945, allocations: 3.438 kB / 0.4941 GB, free: 4.914 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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