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.001201/0.001201, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1932/0.1932, allocations: 46.11 MB / 343.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 77.44 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09766/0.09942, allocations: 62.44 MB / 479.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001627/0.1011, allocations: 0.541 MB / 480.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.1022, allocations: 0.7683 MB / 480.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.053e-05/0.1022, allocations: 4 kB / 480.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.4e-05/0.1023, allocations: 0 / 480.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001634/0.1024, allocations: 7.875 kB / 480.9 MB, free: 4.191 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.0005403/0.103, allocations: 46.2 kB / 480.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.55e-05/0.103, allocations: 11.94 kB / 481 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.621e-05/0.1031, allocations: 0 / 481 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.523e-05/0.1031, allocations: 0 / 481 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.333e-05/0.1032, allocations: 15.97 kB / 481 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.013e-06/0.1032, allocations: 0 / 481 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.1033, allocations: 47.97 kB / 481 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.927e-06/0.1033, allocations: 4 kB / 481 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.956e-05/0.1033, allocations: 0 / 481 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.1035, allocations: 55.84 kB / 481.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1035, allocations: 0 / 481.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1035, allocations: 0 / 481.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.1035, allocations: 4 kB / 481.1 MB, free: 4.012 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.0003279/0.1038, allocations: 357.3 kB / 481.4 MB, free: 3.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1039, allocations: 11.97 kB / 481.4 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.654e-05/0.1039, allocations: 30.75 kB / 481.5 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.206e-05/0.1039, allocations: 0.9375 kB / 481.5 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.888e-05/0.104, allocations: 168.3 kB / 481.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.138e-06/0.104, allocations: 384 / 481.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.1041, allocations: 384 / 481.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.957e-05/0.1041, allocations: 34.27 kB / 481.7 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.1041, allocations: 3.938 kB / 481.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.1042, allocations: 3.984 kB / 481.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.1042, allocations: 0 / 481.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.414e-05/0.1042, allocations: 0 / 481.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001175/0.1043, allocations: 145.7 kB / 481.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.624e-05/0.1043, allocations: 22.52 kB / 481.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.46e-05/0.1044, allocations: 8.953 kB / 481.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.202e-06/0.1044, allocations: 4 kB / 481.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/0.1044, allocations: 64.25 kB / 481.9 MB, free: 2.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1044, allocations: 3.938 kB / 481.9 MB, free: 2.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001466/0.1046, allocations: 63.34 kB / 482 MB, free: 2.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.1046, allocations: 81.11 kB / 482.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.52e-05/0.1047, allocations: 97.84 kB / 482.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.1047, allocations: 29.89 kB / 482.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.303e-05/0.1048, allocations: 84.14 kB / 482.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.329e-05/0.1048, allocations: 3.906 kB / 482.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-05/0.1048, allocations: 13.72 kB / 482.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.769e-05/0.1049, allocations: 314.8 kB / 482.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.217e-06/0.1049, allocations: 0 / 482.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.621e-06/0.1049, allocations: 0 / 482.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.291e-05/0.105, allocations: 60.27 kB / 482.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.105, allocations: 4.062 kB / 482.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.438e-05/0.1051, allocations: 63.39 kB / 482.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.1051, allocations: 37.64 kB / 482.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.1051, allocations: 0 / 482.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.1051, allocations: 0 / 482.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-06/0.1051, allocations: 3.938 kB / 482.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.279e-06/0.1051, allocations: 0 / 482.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.45e-05/0.1051, allocations: 288 / 482.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.1052, allocations: 0 / 482.8 MB, free: 2.047 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 7.467e-05/0.1052, allocations: 147.6 kB / 482.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.088e-05/0.1053, allocations: 7.922 kB / 482.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.534e-06/0.1053, allocations: 3.125 kB / 482.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.1053, allocations: 4 kB / 482.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1053, allocations: 0 / 482.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1053, allocations: 3.938 kB / 482.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.445e-05/0.1054, allocations: 149.6 kB / 483.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1054, allocations: 0 / 483.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.1054, allocations: 0 / 483.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1054, allocations: 7.938 kB / 483.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.1054, allocations: 0 / 483.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1054, allocations: 4 kB / 483.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1054, allocations: 0 / 483.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.353e-05/0.1055, allocations: 90.83 kB / 483.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.823e-05/0.1055, allocations: 77.11 kB / 483.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.1056, allocations: 11.81 kB / 483.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.025e-05/0.1056, allocations: 0 / 483.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.06e-05/0.1056, allocations: 4 kB / 483.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.1056, allocations: 8.031 kB / 483.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.577e-05/0.1056, allocations: 75.28 kB / 483.3 MB, free: 1.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1056, allocations: 0 / 483.3 MB, free: 1.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001982/0.1058, allocations: 19.98 kB / 483.4 MB, free: 1.34 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.0005401/0.1064, allocations: 0.703 MB / 484.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.886e-05/0.1065, allocations: 71.34 kB / 484.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1065, allocations: 0 / 484.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.776e-05/0.1065, allocations: 55.39 kB / 484.2 MB, free: 488 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.1067, allocations: 9.969 kB / 484.2 MB, free: 480 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.0002884/0.107, allocations: 122.6 kB / 484.3 MB, free: 316 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.1072, allocations: 0.6729 MB / 485 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.833e-06/0.1072, allocations: 0 / 485 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.712e-05/0.1072, allocations: 11.56 kB / 485 MB, free: 15.6 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1072, allocations: 0 / 485 MB, free: 15.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 14.35/14.46, allocations: 1.378 MB / 486.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003268/14.46, allocations: 235.2 kB / 486.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/16.34, allocations: 3.938 kB / 486.6 MB, free: 14.06 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