Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_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.000787/0.0007869, allocations: 103.3 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008655/0.0008656, allocations: 185.8 kB / 16.92 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 205.4 MB / 223.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.343/0.343, allocations: 43.58 MB / 315 MB, free: 8.766 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005689/0.000569, allocations: 12.47 kB / 384.7 MB, free: 7.551 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1244, allocations: 58.87 MB / 443.5 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0007053/0.1252, allocations: 220.4 kB / 443.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.1265, allocations: 0.7574 MB / 444.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.683e-05/0.1265, allocations: 0 / 444.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.537e-05/0.1266, allocations: 3.938 kB / 444.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.1267, allocations: 0 / 444.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006639/0.1274, allocations: 39.89 kB / 444.6 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.582e-05/0.1275, allocations: 12 kB / 444.6 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.23e-05/0.1275, allocations: 7.922 kB / 444.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.053e-05/0.1275, allocations: 0 / 444.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.1276, allocations: 11.94 kB / 444.6 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.267e-06/0.1277, allocations: 0 / 444.6 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.1278, allocations: 47.95 kB / 444.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.847e-06/0.1278, allocations: 0 / 444.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.213e-05/0.1279, allocations: 29.7 kB / 444.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.128, allocations: 47.92 kB / 444.7 MB, free: 11.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.128, allocations: 4 kB / 444.7 MB, free: 11.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.128, allocations: 0 / 444.7 MB, free: 11.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.128, allocations: 0 / 444.7 MB, free: 11.39 MB / 382.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.0004067/0.1284, allocations: 361.1 kB / 445.1 MB, free: 10.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.1285, allocations: 16.03 kB / 445.1 MB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.408e-05/0.1285, allocations: 30.75 kB / 445.1 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.683e-05/0.1286, allocations: 4.922 kB / 445.1 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.1287, allocations: 160.4 kB / 445.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.1287, allocations: 384 / 445.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.1288, allocations: 4.375 kB / 445.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.004e-05/0.1289, allocations: 30.25 kB / 445.3 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.1289, allocations: 3.938 kB / 445.3 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-06/0.1289, allocations: 0 / 445.3 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1289, allocations: 4 kB / 445.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.109e-05/0.1289, allocations: 4 kB / 445.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.1291, allocations: 153.9 kB / 445.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.653e-05/0.1291, allocations: 18.61 kB / 445.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.444e-05/0.1292, allocations: 4.859 kB / 445.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.315e-06/0.1292, allocations: 0 / 445.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.717e-05/0.1292, allocations: 56.27 kB / 445.5 MB, free: 10.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.1292, allocations: 4 kB / 445.6 MB, free: 10.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.00018/0.1294, allocations: 79.33 kB / 445.6 MB, free: 10.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.1295, allocations: 77.11 kB / 445.7 MB, free: 10.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.705e-05/0.1296, allocations: 89.86 kB / 445.8 MB, free: 10.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.1296, allocations: 25.7 kB / 445.8 MB, free: 10.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.1296, allocations: 80.14 kB / 445.9 MB, free: 9.977 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.132e-05/0.1297, allocations: 7.938 kB / 445.9 MB, free: 9.969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.154e-05/0.1297, allocations: 9.969 kB / 445.9 MB, free: 9.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1298, allocations: 322.8 kB / 446.2 MB, free: 9.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.406e-06/0.1298, allocations: 0 / 446.2 MB, free: 9.629 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.518e-06/0.1298, allocations: 0 / 446.2 MB, free: 9.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.504e-05/0.1299, allocations: 60.27 kB / 446.3 MB, free: 9.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1299, allocations: 0 / 446.3 MB, free: 9.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.8e-05/0.13, allocations: 67.33 kB / 446.4 MB, free: 9.477 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.13, allocations: 41.58 kB / 446.4 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1301, allocations: 7.938 kB / 446.4 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.1301, allocations: 4.094 kB / 446.4 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1301, allocations: 0 / 446.4 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1301, allocations: 0 / 446.4 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.499e-05/0.1301, allocations: 0 / 446.4 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.1301, allocations: 8 kB / 446.4 MB, free: 9.41 MB / 382.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.194e-05/0.1302, allocations: 131.5 kB / 446.5 MB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.345e-06/0.1302, allocations: 3.938 kB / 446.5 MB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.403e-05/0.1303, allocations: 7.109 kB / 446.6 MB, free: 9.254 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1303, allocations: 4 kB / 446.6 MB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.1303, allocations: 4 kB / 446.6 MB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1303, allocations: 0 / 446.6 MB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.751e-05/0.1304, allocations: 141.7 kB / 446.7 MB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1304, allocations: 0 / 446.7 MB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1304, allocations: 0 / 446.7 MB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1304, allocations: 7.938 kB / 446.7 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.1304, allocations: 3.984 kB / 446.7 MB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.1304, allocations: 0 / 446.7 MB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1304, allocations: 0 / 446.7 MB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.68e-05/0.1305, allocations: 94.78 kB / 446.8 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.076e-05/0.1306, allocations: 85 kB / 446.9 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.1306, allocations: 3.938 kB / 446.9 MB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.183e-05/0.1306, allocations: 4 kB / 446.9 MB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.579e-05/0.1306, allocations: 4 kB / 446.9 MB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.1306, allocations: 0 / 446.9 MB, free: 8.816 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.952e-05/0.1307, allocations: 75.28 kB / 447 MB, free: 8.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1307, allocations: 0 / 447 MB, free: 8.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002033/0.1309, allocations: 24.12 kB / 447 MB, free: 8.719 MB / 382.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.0005859/0.1315, allocations: 0.7245 MB / 447.7 MB, free: 7.977 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.036e-05/0.1316, allocations: 71.28 kB / 447.8 MB, free: 7.895 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1316, allocations: 0 / 447.8 MB, free: 7.895 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.473e-05/0.1316, allocations: 51.41 kB / 447.8 MB, free: 7.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.1318, allocations: 4 kB / 447.8 MB, free: 7.828 MB / 382.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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.0003434/0.1321, allocations: 120.5 kB / 448 MB, free: 7.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.1324, allocations: 0.677 MB / 448.6 MB, free: 6.965 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.326e-06/0.1324, allocations: 0 / 448.6 MB, free: 6.965 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.717e-05/0.1324, allocations: 11.38 kB / 448.6 MB, free: 6.957 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1324, allocations: 0 / 448.6 MB, free: 6.957 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2469/0.3793, allocations: 1.244 MB / 449.9 MB, free: 5.73 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002339/0.3795, allocations: 240.8 kB / 450.1 MB, free: 5.461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.346, allocations: 0 / 450.1 MB, free: 5.461 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches