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.001165/0.001165, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001204, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.3 MB, free: 10.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2189/0.2189, allocations: 46.11 MB / 343.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 84.19 kB / 416.9 MB, free: 7.461 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1146, allocations: 62.43 MB / 479.4 MB, free: 8.969 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001814/0.1164, allocations: 0.5409 MB / 479.9 MB, free: 8.422 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.1177, allocations: 0.7604 MB / 480.7 MB, free: 7.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.167e-05/0.1177, allocations: 0 / 480.7 MB, free: 7.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.381e-05/0.1177, allocations: 4 kB / 480.7 MB, free: 7.656 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001648/0.1179, allocations: 11.98 kB / 480.7 MB, free: 7.645 MB / 398.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.0006458/0.1186, allocations: 50.78 kB / 480.7 MB, free: 7.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.127e-05/0.1186, allocations: 0 / 480.7 MB, free: 7.598 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.141e-05/0.1186, allocations: 0 / 480.7 MB, free: 7.598 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.988e-05/0.1187, allocations: 4 kB / 480.7 MB, free: 7.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.015e-05/0.1188, allocations: 4 kB / 480.7 MB, free: 7.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.995e-06/0.1188, allocations: 0 / 480.7 MB, free: 7.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.1189, allocations: 59.94 kB / 480.8 MB, free: 7.531 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.308e-06/0.1189, allocations: 0 / 480.8 MB, free: 7.531 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.119, allocations: 7.875 kB / 480.8 MB, free: 7.523 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.1191, allocations: 47.94 kB / 480.9 MB, free: 7.477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1191, allocations: 0 / 480.9 MB, free: 7.477 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1191, allocations: 0 / 480.9 MB, free: 7.477 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.393e-06/0.1191, allocations: 0 / 480.9 MB, free: 7.477 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.0003655/0.1195, allocations: 357.2 kB / 481.2 MB, free: 7.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.029e-05/0.1196, allocations: 12.88 kB / 481.2 MB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.23e-05/0.1196, allocations: 30.75 kB / 481.3 MB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.618e-05/0.1196, allocations: 4.922 kB / 481.3 MB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.1198, allocations: 160.4 kB / 481.4 MB, free: 6.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.1198, allocations: 4.375 kB / 481.4 MB, free: 6.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.052e-06/0.1198, allocations: 4.312 kB / 481.4 MB, free: 6.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.912e-05/0.1199, allocations: 38.25 kB / 481.5 MB, free: 6.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.1199, allocations: 3.938 kB / 481.5 MB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-06/0.1199, allocations: 0 / 481.5 MB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.1199, allocations: 0 / 481.5 MB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.815e-05/0.1199, allocations: 7.938 kB / 481.5 MB, free: 6.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.1201, allocations: 145.7 kB / 481.6 MB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.024e-05/0.1201, allocations: 22.61 kB / 481.6 MB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/0.1201, allocations: 8.859 kB / 481.6 MB, free: 6.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.391e-06/0.1201, allocations: 0 / 481.6 MB, free: 6.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.1202, allocations: 56.27 kB / 481.7 MB, free: 6.453 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1202, allocations: 0 / 481.7 MB, free: 6.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001602/0.1204, allocations: 75.33 kB / 481.8 MB, free: 6.367 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.1204, allocations: 77.11 kB / 481.8 MB, free: 6.273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.687e-05/0.1205, allocations: 97.98 kB / 481.9 MB, free: 6.168 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.1205, allocations: 25.7 kB / 482 MB, free: 6.137 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.653e-05/0.1205, allocations: 80.14 kB / 482 MB, free: 6.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.1206, allocations: 7.984 kB / 482.1 MB, free: 6.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.696e-05/0.1206, allocations: 13.7 kB / 482.1 MB, free: 6.027 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.1207, allocations: 314.8 kB / 482.4 MB, free: 5.711 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.252e-05/0.1207, allocations: 8 kB / 482.4 MB, free: 5.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.835e-06/0.1207, allocations: 4.125 kB / 482.4 MB, free: 5.699 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.907e-05/0.1208, allocations: 64.27 kB / 482.5 MB, free: 5.621 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1208, allocations: 3.938 kB / 482.5 MB, free: 5.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.061e-05/0.1209, allocations: 63.39 kB / 482.5 MB, free: 5.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.1209, allocations: 33.64 kB / 482.6 MB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1209, allocations: 0 / 482.6 MB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.1209, allocations: 0 / 482.6 MB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.1209, allocations: 0 / 482.6 MB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.121, allocations: 0 / 482.6 MB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.727e-05/0.121, allocations: 8.375 kB / 482.6 MB, free: 5.496 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.121, allocations: 0 / 482.6 MB, free: 5.496 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 8.052e-05/0.1211, allocations: 131.5 kB / 482.7 MB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.468e-05/0.1211, allocations: 15.92 kB / 482.7 MB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.618e-06/0.1211, allocations: 3.125 kB / 482.7 MB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1211, allocations: 0 / 482.7 MB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1211, allocations: 3.938 kB / 482.7 MB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.1211, allocations: 0 / 482.7 MB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001275/0.1213, allocations: 149.6 kB / 482.9 MB, free: 5.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1213, allocations: 0 / 482.9 MB, free: 5.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.795e-06/0.1213, allocations: 7.984 kB / 482.9 MB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.1213, allocations: 3.938 kB / 482.9 MB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.1213, allocations: 0 / 482.9 MB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1213, allocations: 0 / 482.9 MB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.1213, allocations: 3.938 kB / 482.9 MB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001229/0.1214, allocations: 90.75 kB / 483 MB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.399e-05/0.1215, allocations: 81.09 kB / 483 MB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.1215, allocations: 11.97 kB / 483.1 MB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.214e-05/0.1216, allocations: 0 / 483.1 MB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.984e-05/0.1216, allocations: 0 / 483.1 MB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.1216, allocations: 0 / 483.1 MB, free: 4.898 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.182e-05/0.1216, allocations: 79.28 kB / 483.1 MB, free: 4.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1216, allocations: 0 / 483.1 MB, free: 4.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.1219, allocations: 16 kB / 483.1 MB, free: 4.805 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.0007951/0.1227, allocations: 0.7235 MB / 483.9 MB, free: 4.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.1228, allocations: 55.41 kB / 483.9 MB, free: 4.004 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1228, allocations: 0 / 483.9 MB, free: 4.004 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.565e-05/0.1228, allocations: 59.41 kB / 484 MB, free: 3.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.123, allocations: 2.188 kB / 484 MB, free: 3.934 MB / 398.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.0003339/0.1233, allocations: 120.5 kB / 484.1 MB, free: 3.773 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.1236, allocations: 0.677 MB / 484.8 MB, free: 3.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.989e-06/0.1236, allocations: 0 / 484.8 MB, free: 3.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.103e-05/0.1237, allocations: 7.438 kB / 484.8 MB, free: 3.062 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1237, allocations: 3.938 kB / 484.8 MB, free: 3.059 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3268/0.4504, allocations: 1.356 MB / 486.1 MB, free: 1.785 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003137/0.4508, allocations: 226.1 kB / 486.4 MB, free: 1.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.32, allocations: 4 kB / 486.4 MB, free: 1.531 MB / 398.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