Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 95.84 kB / 17.35 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 211.4 kB / 18.29 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.7 MB / 246.8 MB, free: 9.465 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1969/0.1969, allocations: 46.19 MB / 345.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.000247, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1046, allocations: 63.55 MB / 483.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0004827/0.1051, allocations: 218.9 kB / 483.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1063, allocations: 0.7565 MB / 484.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.367e-06/0.1063, allocations: 0 / 484.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.666e-06/0.1063, allocations: 0 / 484.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.1065, allocations: 11.97 kB / 484.1 MB, free: 3.086 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362: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.0005575/0.107, allocations: 49.27 kB / 484.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.211e-05/0.1071, allocations: 4 kB / 484.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.254e-05/0.1071, allocations: 3.984 kB / 484.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.469e-05/0.1071, allocations: 4 kB / 484.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.781e-05/0.1072, allocations: 4 kB / 484.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.504e-06/0.1072, allocations: 0 / 484.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.1073, allocations: 59.94 kB / 484.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.723e-06/0.1074, allocations: 0 / 484.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.88e-05/0.1074, allocations: 29.7 kB / 484.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.1075, allocations: 51.81 kB / 484.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1075, allocations: 0 / 484.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1075, allocations: 4 kB / 484.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.1075, allocations: 0 / 484.3 MB, free: 2.879 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.0003147/0.1079, allocations: 349.3 kB / 484.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.1079, allocations: 8.875 kB / 484.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.141e-05/0.1079, allocations: 34.75 kB / 484.7 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.04e-05/0.108, allocations: 0.9375 kB / 484.7 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.613e-05/0.1081, allocations: 160.4 kB / 484.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-06/0.1081, allocations: 384 / 484.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.362e-06/0.1081, allocations: 384 / 484.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.993e-05/0.1082, allocations: 38.25 kB / 484.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.1082, allocations: 3.938 kB / 484.9 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-06/0.1082, allocations: 4 kB / 484.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1082, allocations: 0 / 484.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.035e-05/0.1082, allocations: 7.938 kB / 484.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001173/0.1084, allocations: 141.7 kB / 485.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.131e-05/0.1084, allocations: 18.61 kB / 485.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.166e-05/0.1084, allocations: 4.859 kB / 485.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-06/0.1084, allocations: 0 / 485.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.1085, allocations: 72.25 kB / 485.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.144e-06/0.1085, allocations: 3.938 kB / 485.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000139/0.1086, allocations: 71.28 kB / 485.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.1087, allocations: 81.11 kB / 485.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.892e-05/0.1087, allocations: 97.84 kB / 485.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.1088, allocations: 25.7 kB / 485.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.311e-05/0.1088, allocations: 80.14 kB / 485.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.1088, allocations: 4.156 kB / 485.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.955e-05/0.1088, allocations: 17.72 kB / 485.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.095e-05/0.1089, allocations: 310.8 kB / 485.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.515e-06/0.1089, allocations: 0 / 485.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-06/0.1089, allocations: 0 / 485.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.171e-05/0.109, allocations: 60.27 kB / 485.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.109, allocations: 0 / 485.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.901e-05/0.1091, allocations: 71.33 kB / 486 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.056e-05/0.1092, allocations: 41.73 kB / 486 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.1092, allocations: 0 / 486 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.1092, allocations: 0 / 486 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.1092, allocations: 0 / 486 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.1092, allocations: 0 / 486 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.539e-05/0.1092, allocations: 288 / 486 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-06/0.1092, allocations: 0 / 486 MB, free: 0.9219 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.157e-05/0.1093, allocations: 143.5 kB / 486.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-06/0.1093, allocations: 3.938 kB / 486.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.396e-06/0.1094, allocations: 7.109 kB / 486.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.1094, allocations: 4 kB / 486.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1094, allocations: 4 kB / 486.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.1094, allocations: 0 / 486.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.473e-05/0.1095, allocations: 153.6 kB / 486.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1095, allocations: 0 / 486.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1095, allocations: 0 / 486.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.1095, allocations: 3.938 kB / 486.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.1095, allocations: 4 kB / 486.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1095, allocations: 0 / 486.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1095, allocations: 0 / 486.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.737e-05/0.1096, allocations: 98.77 kB / 486.4 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.025e-05/0.1096, allocations: 77.11 kB / 486.5 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.1097, allocations: 3.938 kB / 486.5 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.098e-05/0.1097, allocations: 3.938 kB / 486.5 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.186e-05/0.1097, allocations: 4 kB / 486.5 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.1097, allocations: 0 / 486.5 MB, free: 324 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.877e-05/0.1097, allocations: 79.31 kB / 486.6 MB, free: 244 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1097, allocations: 0 / 486.6 MB, free: 244 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002047/0.1099, allocations: 27.92 kB / 486.6 MB, free: 216 kB / 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.0006319/0.1106, allocations: 0.7101 MB / 487.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.139e-05/0.1107, allocations: 55.41 kB / 487.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1107, allocations: 0 / 487.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.947e-05/0.1107, allocations: 63.45 kB / 487.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.1109, allocations: 11.25 kB / 487.5 MB, free: 15.33 MB / 366.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0002904/0.1112, allocations: 112.4 kB / 487.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.1114, allocations: 0.6692 MB / 488.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.867e-06/0.1114, allocations: 7.828 kB / 488.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.518e-05/0.1114, allocations: 7.438 kB / 488.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1114, allocations: 3.938 kB / 488.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.551/2.662, allocations: 1.255 MB / 489.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/2.662, allocations: 230.2 kB / 489.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/4.336, allocations: 4.062 kB / 489.7 MB, free: 13.07 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches