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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001944/0.001944, allocations: 97.91 kB / 20.48 MB, free: 1.367 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002455/0.002455, allocations: 212.8 kB / 23.78 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 207.7 MB / 234.6 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2521/0.2521, allocations: 44.26 MB / 331.1 MB, free: 9.309 MB / 270.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 71.89 kB / 468.3 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1149, allocations: 61.05 MB / 0.5169 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001638/0.1165, allocations: 0.4912 MB / 0.5174 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.1178, allocations: 0.8607 MB / 0.5182 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.09e-05/0.1178, allocations: 0 / 0.5182 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.596e-05/0.1178, allocations: 0 / 0.5182 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.118, allocations: 15.91 kB / 0.5182 GB, free: 5.816 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005771/0.1186, allocations: 59.83 kB / 0.5183 GB, free: 5.758 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.63e-05/0.1186, allocations: 4 kB / 0.5183 GB, free: 5.754 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.823e-05/0.1187, allocations: 4 kB / 0.5183 GB, free: 5.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.489e-05/0.1187, allocations: 3.938 kB / 0.5183 GB, free: 5.746 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.674e-05/0.1188, allocations: 0 / 0.5183 GB, free: 5.746 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.1188, allocations: 0 / 0.5183 GB, free: 5.746 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.1189, allocations: 59.92 kB / 0.5184 GB, free: 5.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.825e-06/0.1189, allocations: 0 / 0.5184 GB, free: 5.688 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.209e-05/0.1189, allocations: 4 kB / 0.5184 GB, free: 5.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001405/0.1191, allocations: 51.81 kB / 0.5184 GB, free: 5.633 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1191, allocations: 0 / 0.5184 GB, free: 5.633 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1191, allocations: 4 kB / 0.5184 GB, free: 5.629 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1191, allocations: 3.938 kB / 0.5184 GB, free: 5.625 MB / 398.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.0003884/0.1195, allocations: 287.9 kB / 0.5187 GB, free: 5.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1195, allocations: 8.031 kB / 0.5187 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.083e-05/0.1195, allocations: 4.188 kB / 0.5187 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.475e-05/0.1196, allocations: 30.75 kB / 0.5187 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.376e-05/0.1196, allocations: 0.9375 kB / 0.5187 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.1197, allocations: 110.5 kB / 0.5188 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.1197, allocations: 4.375 kB / 0.5188 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.1197, allocations: 384 / 0.5188 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.1198, allocations: 67.72 kB / 0.5189 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.1198, allocations: 0 / 0.5189 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-06/0.1198, allocations: 0 / 0.5189 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1198, allocations: 0 / 0.5189 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.396e-05/0.1199, allocations: 29.64 kB / 0.5189 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.12, allocations: 120.8 kB / 0.5191 GB, free: 4.844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.222e-05/0.1201, allocations: 48.22 kB / 0.5191 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.033e-05/0.1201, allocations: 34.66 kB / 0.5191 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-06/0.1201, allocations: 0 / 0.5191 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/0.1202, allocations: 60.2 kB / 0.5192 GB, free: 4.664 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1202, allocations: 0 / 0.5192 GB, free: 4.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002115/0.1204, allocations: 134.7 kB / 0.5193 GB, free: 4.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.1204, allocations: 77.11 kB / 0.5194 GB, free: 4.414 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.578e-05/0.1205, allocations: 89.86 kB / 0.5195 GB, free: 4.316 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.1205, allocations: 29.7 kB / 0.5195 GB, free: 4.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.1206, allocations: 80.14 kB / 0.5196 GB, free: 4.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.383e-05/0.1206, allocations: 1.109 kB / 0.5196 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.1206, allocations: 17.64 kB / 0.5196 GB, free: 4.176 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1208, allocations: 318.8 kB / 0.5199 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.588e-05/0.1208, allocations: 25.7 kB / 0.5199 GB, free: 3.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.836e-05/0.1208, allocations: 29.95 kB / 0.52 GB, free: 3.789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.255e-05/0.1209, allocations: 60.27 kB / 0.52 GB, free: 3.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.1209, allocations: 4 kB / 0.52 GB, free: 3.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001031/0.121, allocations: 93.03 kB / 0.5201 GB, free: 3.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.121, allocations: 38.58 kB / 0.5201 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.121, allocations: 0 / 0.5201 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.121, allocations: 0 / 0.5201 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.121, allocations: 0 / 0.5201 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.121, allocations: 0 / 0.5201 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.911e-05/0.1211, allocations: 4 kB / 0.5201 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.1211, allocations: 4.094 kB / 0.5202 GB, free: 3.551 MB / 398.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.0001008/0.1212, allocations: 135.5 kB / 0.5203 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.271e-05/0.1212, allocations: 7.938 kB / 0.5203 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.504e-06/0.1212, allocations: 3 kB / 0.5203 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1212, allocations: 4 kB / 0.5203 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.1212, allocations: 0 / 0.5203 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.1212, allocations: 0 / 0.5203 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.876e-05/0.1213, allocations: 132.7 kB / 0.5204 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1213, allocations: 0 / 0.5204 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1213, allocations: 0 / 0.5204 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1213, allocations: 7.938 kB / 0.5204 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.1213, allocations: 0 / 0.5204 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1213, allocations: 0 / 0.5204 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1213, allocations: 0 / 0.5204 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.1214, allocations: 124.5 kB / 0.5205 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.651e-06/0.1214, allocations: 3.938 kB / 0.5206 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.1214, allocations: 0 / 0.5206 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.068e-05/0.1215, allocations: 0 / 0.5206 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.201e-05/0.1215, allocations: 7.938 kB / 0.5206 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.1215, allocations: 0 / 0.5206 GB, free: 3.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.007e-05/0.1215, allocations: 79.31 kB / 0.5206 GB, free: 2.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1215, allocations: 0 / 0.5206 GB, free: 2.969 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002341/0.1217, allocations: 27.86 kB / 0.5207 GB, free: 2.941 MB / 398.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.0008012/0.1225, allocations: 0.7521 MB / 0.5214 GB, free: 2.164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001352/0.1227, allocations: 114.8 kB / 0.5215 GB, free: 2.027 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1227, allocations: 0 / 0.5215 GB, free: 2.027 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.96e-05/0.1227, allocations: 81.11 kB / 0.5216 GB, free: 1.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.1229, allocations: 6.188 kB / 0.5216 GB, free: 1.926 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000359/0.1232, allocations: 148.2 kB / 0.5217 GB, free: 1.734 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.956e-05/0.1233, allocations: 51.36 kB / 0.5218 GB, free: 1.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.151e-05/0.1233, allocations: 4 kB / 0.5218 GB, free: 1.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.143e-05/0.1233, allocations: 11.56 kB / 0.5218 GB, free: 1.648 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1233, allocations: 0 / 0.5218 GB, free: 1.648 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.1454, allocations: 1.676 MB / 0.5234 GB, free: 15.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/11.82, allocations: 11.34 kB / 0.5234 GB, free: 15.97 MB / 414.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.820409727981314]