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.001332/0.001332, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2137/0.2137, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 79.36 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1298, allocations: 62.44 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002262/0.1321, allocations: 490.2 kB / 480.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001616/0.1338, allocations: 0.7802 MB / 481.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.162e-05/0.1338, allocations: 0 / 481.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.1339, allocations: 0 / 481.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002212/0.1342, allocations: 15.92 kB / 481.4 MB, free: 3.938 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.0007279/0.1349, allocations: 53.95 kB / 481.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.729e-05/0.135, allocations: 4 kB / 481.4 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.732e-05/0.135, allocations: 7.984 kB / 481.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.698e-05/0.1351, allocations: 4 kB / 481.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.1352, allocations: 0 / 481.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.176e-05/0.1352, allocations: 3.984 kB / 481.5 MB, free: 3.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.1354, allocations: 59.59 kB / 481.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.498e-06/0.1354, allocations: 3.938 kB / 481.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.9e-05/0.1354, allocations: 3.984 kB / 481.5 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.1356, allocations: 51.88 kB / 481.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1356, allocations: 0 / 481.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1356, allocations: 0 / 481.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1356, allocations: 0 / 481.6 MB, free: 3.754 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.0004173/0.136, allocations: 353.3 kB / 481.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1361, allocations: 12.03 kB / 481.9 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.702e-05/0.1361, allocations: 38.69 kB / 482 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.97e-05/0.1362, allocations: 0.9375 kB / 482 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.1363, allocations: 160.4 kB / 482.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.1363, allocations: 384 / 482.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.1363, allocations: 384 / 482.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.702e-05/0.1365, allocations: 34.25 kB / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.1365, allocations: 3.938 kB / 482.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.1365, allocations: 3.984 kB / 482.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.1365, allocations: 0 / 482.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.97e-05/0.1365, allocations: 4 kB / 482.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001619/0.1367, allocations: 149.7 kB / 482.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.282e-05/0.1367, allocations: 22.55 kB / 482.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.68e-05/0.1368, allocations: 4.859 kB / 482.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.1368, allocations: 3.984 kB / 482.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.002e-05/0.1368, allocations: 56.27 kB / 482.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 3.196e-06/0.1368, allocations: 0 / 482.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001971/0.137, allocations: 79.34 kB / 482.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.1371, allocations: 81.05 kB / 482.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.726e-05/0.1372, allocations: 93.84 kB / 482.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.1372, allocations: 25.7 kB / 482.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.802e-05/0.1373, allocations: 84.12 kB / 482.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.1373, allocations: 7.906 kB / 482.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.1373, allocations: 9.719 kB / 482.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.1375, allocations: 319.1 kB / 483.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.536e-05/0.1375, allocations: 4 kB / 483.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.253e-06/0.1375, allocations: 0 / 483.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.376e-05/0.1376, allocations: 60.27 kB / 483.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1376, allocations: 3.984 kB / 483.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.111e-05/0.1377, allocations: 59.41 kB / 483.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.1377, allocations: 41.58 kB / 483.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1377, allocations: 0 / 483.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.1378, allocations: 4.094 kB / 483.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.1378, allocations: 0 / 483.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1378, allocations: 0 / 483.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.832e-05/0.1378, allocations: 8.219 kB / 483.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.1378, allocations: 0 / 483.3 MB, free: 1.777 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 9.723e-05/0.1379, allocations: 135.5 kB / 483.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.1379, allocations: 7.938 kB / 483.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.055e-05/0.138, allocations: 3.125 kB / 483.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.138, allocations: 0 / 483.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.138, allocations: 4 kB / 483.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.138, allocations: 0 / 483.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.1381, allocations: 157.6 kB / 483.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1381, allocations: 0 / 483.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.1381, allocations: 0 / 483.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1381, allocations: 3.938 kB / 483.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.924e-06/0.1381, allocations: 0 / 483.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1381, allocations: 0 / 483.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1381, allocations: 0 / 483.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001091/0.1383, allocations: 98.77 kB / 483.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.115e-05/0.1383, allocations: 81.11 kB / 483.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.1383, allocations: 7.938 kB / 483.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.241e-05/0.1384, allocations: 3.938 kB / 483.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.503e-05/0.1384, allocations: 0 / 483.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.1384, allocations: 0 / 483.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.664e-05/0.1384, allocations: 79.28 kB / 483.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1384, allocations: 0 / 483.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.1387, allocations: 19.98 kB / 483.9 MB, free: 1.082 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.0008396/0.1395, allocations: 0.7202 MB / 484.6 MB, free: 356 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001383/0.1397, allocations: 59.34 kB / 484.6 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1397, allocations: 0 / 484.6 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.337e-05/0.1397, allocations: 59.39 kB / 484.7 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001698/0.1399, allocations: 0 / 484.7 MB, free: 212 kB / 350.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.0004965/0.1404, allocations: 122.7 kB / 484.8 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.1408, allocations: 0.669 MB / 485.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.096e-05/0.1408, allocations: 0 / 485.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.757e-05/0.1408, allocations: 11.44 kB / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1408, allocations: 0 / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6256/0.7664, allocations: 1.456 MB / 487 MB, free: 13.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/8.466, allocations: 0 / 487 MB, free: 13.94 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.csv","/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