Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001865/0.001866, allocations: 106.3 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00174/0.00174, allocations: 193.3 kB / 18.25 MB, free: 5.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 241.9 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2416/0.2416, allocations: 44.18 MB / 336.3 MB, free: 2.926 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 59.12 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1113, allocations: 60.83 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00186/0.1132, allocations: 0.5333 MB / 469.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.1144, allocations: 0.7681 MB / 470.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.244e-05/0.1144, allocations: 4 kB / 470.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.541e-05/0.1145, allocations: 0 / 470.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000187/0.1147, allocations: 3.938 kB / 470.1 MB, free: 13.32 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0006617/0.1154, allocations: 57.7 kB / 470.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.314e-05/0.1154, allocations: 11.86 kB / 470.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.002e-05/0.1155, allocations: 4 kB / 470.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.779e-05/0.1155, allocations: 0 / 470.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.1156, allocations: 11.98 kB / 470.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.606e-06/0.1156, allocations: 0 / 470.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.1158, allocations: 51.95 kB / 470.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.316e-06/0.1158, allocations: 0 / 470.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.391e-05/0.1158, allocations: 8 kB / 470.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.116, allocations: 43.88 kB / 470.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.116, allocations: 4 kB / 470.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.116, allocations: 0 / 470.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.116, allocations: 0 / 470.3 MB, free: 13.13 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.0003838/0.1164, allocations: 357.3 kB / 470.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.1164, allocations: 12.03 kB / 470.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.845e-05/0.1165, allocations: 30.75 kB / 470.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.777e-05/0.1165, allocations: 4.875 kB / 470.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.1167, allocations: 164.4 kB / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.1167, allocations: 384 / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.444e-06/0.1167, allocations: 384 / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.975e-05/0.1168, allocations: 38.25 kB / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.1168, allocations: 3.938 kB / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.1168, allocations: 0 / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1168, allocations: 0 / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.69e-05/0.1168, allocations: 7.938 kB / 470.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001299/0.117, allocations: 145.7 kB / 471.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.997e-05/0.117, allocations: 22.5 kB / 471.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.753e-05/0.1171, allocations: 8.953 kB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.012e-06/0.1171, allocations: 0 / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/0.1171, allocations: 60.27 kB / 471.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1171, allocations: 4 kB / 471.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000187/0.1173, allocations: 63.34 kB / 471.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/0.1174, allocations: 85.03 kB / 471.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.832e-05/0.1175, allocations: 97.8 kB / 471.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.1175, allocations: 29.7 kB / 471.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.612e-05/0.1175, allocations: 80.14 kB / 471.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.1176, allocations: 3.906 kB / 471.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.1176, allocations: 13.97 kB / 471.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1177, allocations: 314.8 kB / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-06/0.1177, allocations: 0 / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-06/0.1177, allocations: 0 / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.186e-05/0.1178, allocations: 68.25 kB / 471.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1178, allocations: 0 / 471.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.691e-05/0.1179, allocations: 59.41 kB / 472 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.1179, allocations: 37.64 kB / 472 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.1179, allocations: 4.031 kB / 472 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.1179, allocations: 4 kB / 472 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.305e-06/0.1179, allocations: 3.984 kB / 472 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.1179, allocations: 0 / 472 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.118, allocations: 288 / 472 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.118, allocations: 0 / 472 MB, free: 11.16 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.595e-05/0.1181, allocations: 135.5 kB / 472.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.131e-05/0.1181, allocations: 7.938 kB / 472.1 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.808e-06/0.1181, allocations: 7.078 kB / 472.1 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1181, allocations: 8 kB / 472.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1181, allocations: 0 / 472.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1181, allocations: 0 / 472.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.347e-05/0.1182, allocations: 153.6 kB / 472.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1182, allocations: 0 / 472.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.252e-06/0.1182, allocations: 0 / 472.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.1182, allocations: 7.938 kB / 472.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.1182, allocations: 0 / 472.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1183, allocations: 0 / 472.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1183, allocations: 0 / 472.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.1184, allocations: 98.77 kB / 472.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.018e-05/0.1184, allocations: 77.11 kB / 472.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.1184, allocations: 7.875 kB / 472.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.096e-05/0.1184, allocations: 0 / 472.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.045e-05/0.1185, allocations: 4 kB / 472.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.1185, allocations: 7.922 kB / 472.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.383e-05/0.1185, allocations: 75.28 kB / 472.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1185, allocations: 128 / 472.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002185/0.1187, allocations: 20 kB / 472.6 MB, free: 10.45 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.0005947/0.1193, allocations: 0.7103 MB / 473.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.813e-05/0.1194, allocations: 67.33 kB / 473.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1194, allocations: 0 / 473.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.779e-05/0.1195, allocations: 59.41 kB / 473.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001291/0.1196, allocations: 4.125 kB / 473.4 MB, free: 9.586 MB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.0003164/0.1199, allocations: 122.6 kB / 473.6 MB, free: 9.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.1202, allocations: 0.6729 MB / 474.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.508e-06/0.1202, allocations: 0 / 474.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.278e-05/0.1202, allocations: 7.438 kB / 474.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1203, allocations: 0 / 474.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3056/0.4259, allocations: 1.389 MB / 475.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003314/0.4263, allocations: 237.3 kB / 475.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.251/2.677, allocations: 0 / 475.9 MB, free: 7.172 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches