Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001652/0.001652, allocations: 105.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001984/0.001984, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2449/0.2449, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002201/0.002201, allocations: 83.52 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1255, allocations: 62.46 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001682/0.1273, allocations: 479.7 kB / 480.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.1285, allocations: 0.7764 MB / 481.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.129e-05/0.1285, allocations: 7.938 kB / 481.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.361e-05/0.1285, allocations: 0 / 481.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.1287, allocations: 7.938 kB / 481.5 MB, free: 3.875 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.0005686/0.1293, allocations: 63.27 kB / 481.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.928e-05/0.1293, allocations: 4 kB / 481.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.015e-05/0.1294, allocations: 0 / 481.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.515e-05/0.1294, allocations: 0 / 481.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.885e-05/0.1295, allocations: 15.98 kB / 481.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.514e-06/0.1295, allocations: 0 / 481.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.1296, allocations: 47.97 kB / 481.6 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.1296, allocations: 7.984 kB / 481.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.652e-05/0.1297, allocations: 0 / 481.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.1298, allocations: 55.86 kB / 481.7 MB, free: 3.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1298, allocations: 0 / 481.7 MB, free: 3.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1298, allocations: 0 / 481.7 MB, free: 3.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1298, allocations: 0 / 481.7 MB, free: 3.688 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.0003737/0.1302, allocations: 353.3 kB / 482 MB, free: 3.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1302, allocations: 12.03 kB / 482 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.381e-05/0.1303, allocations: 34.69 kB / 482 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.401e-05/0.1303, allocations: 4.938 kB / 482.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.1304, allocations: 160.4 kB / 482.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-06/0.1304, allocations: 384 / 482.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.731e-06/0.1305, allocations: 384 / 482.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.2e-05/0.1305, allocations: 30.27 kB / 482.2 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1305, allocations: 3.938 kB / 482.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.1306, allocations: 3.984 kB / 482.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1306, allocations: 0 / 482.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.355e-05/0.1306, allocations: 4 kB / 482.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.1308, allocations: 149.7 kB / 482.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.577e-05/0.1308, allocations: 18.52 kB / 482.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.517e-05/0.1308, allocations: 8.953 kB / 482.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-06/0.1308, allocations: 0 / 482.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.857e-05/0.1309, allocations: 60.25 kB / 482.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.815e-06/0.1309, allocations: 4 kB / 482.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001631/0.1311, allocations: 75.22 kB / 482.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.1311, allocations: 77.11 kB / 482.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.308e-05/0.1312, allocations: 97.84 kB / 482.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.1312, allocations: 25.7 kB / 482.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.743e-05/0.1313, allocations: 84.08 kB / 482.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.5e-05/0.1313, allocations: 3.906 kB / 482.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.784e-05/0.1313, allocations: 13.97 kB / 482.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1315, allocations: 318.8 kB / 483.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.1315, allocations: 0 / 483.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.521e-06/0.1315, allocations: 0 / 483.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.017e-05/0.1316, allocations: 60.27 kB / 483.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.1316, allocations: 0 / 483.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.214e-05/0.1317, allocations: 67.33 kB / 483.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/0.1317, allocations: 37.64 kB / 483.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.1317, allocations: 96 / 483.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.1318, allocations: 4 kB / 483.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1318, allocations: 0 / 483.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.1318, allocations: 0 / 483.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.546e-05/0.1318, allocations: 288 / 483.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.1318, allocations: 0 / 483.3 MB, free: 1.727 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 0.0001005/0.1319, allocations: 143.5 kB / 483.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.044e-05/0.1319, allocations: 3.938 kB / 483.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.945e-06/0.1319, allocations: 3.125 kB / 483.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.132, allocations: 4 kB / 483.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.132, allocations: 4 kB / 483.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.132, allocations: 7.984 kB / 483.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.1321, allocations: 149.6 kB / 483.6 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1321, allocations: 0 / 483.6 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1321, allocations: 0 / 483.6 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1321, allocations: 7.938 kB / 483.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.1321, allocations: 3.984 kB / 483.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1321, allocations: 0 / 483.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1321, allocations: 0 / 483.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.1322, allocations: 98.77 kB / 483.8 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.263e-05/0.1323, allocations: 77.11 kB / 483.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.1324, allocations: 3.938 kB / 483.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.639e-05/0.1324, allocations: 7.938 kB / 483.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.528e-05/0.1324, allocations: 4 kB / 483.8 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.1324, allocations: 0 / 483.8 MB, free: 1.113 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.502e-05/0.1325, allocations: 75.28 kB / 483.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1325, allocations: 128 / 483.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003604/0.1328, allocations: 27.98 kB / 483.9 MB, free: 1.012 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.0009819/0.1338, allocations: 0.716 MB / 484.7 MB, free: 292 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001258/0.134, allocations: 67.34 kB / 484.7 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.134, allocations: 0 / 484.7 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.906e-05/0.1341, allocations: 59.39 kB / 484.8 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.1343, allocations: 6.156 kB / 484.8 MB, free: 136 kB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0004773/0.1348, allocations: 118.6 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.1352, allocations: 0.669 MB / 485.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.177e-06/0.1352, allocations: 0 / 485.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.635e-05/0.1352, allocations: 11.44 kB / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1352, allocations: 0 / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2506/0.3859, allocations: 1.451 MB / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.86/8.246, allocations: 5.953 kB / 487 MB, free: 13.88 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1)