Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001365/0.001365, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, 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.233/0.233, allocations: 46.12 MB / 344.2 MB, free: 11.54 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.002325/0.002325, allocations: 83.14 kB / 417.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1241, allocations: 62.45 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001812/0.1259, allocations: 479.8 kB / 480.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005387/0.1265, allocations: 214.1 kB / 480.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.984e-05/0.1265, allocations: 0 / 480.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.145e-05/0.1266, allocations: 0 / 480.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.529e-06/0.1266, allocations: 0 / 480.9 MB, free: 4.434 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.1269, allocations: 51.81 kB / 480.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.059e-05/0.1269, allocations: 7.938 kB / 480.9 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.756e-05/0.127, allocations: 0 / 480.9 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.378e-05/0.127, allocations: 0 / 480.9 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.528e-05/0.127, allocations: 4 kB / 480.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-06/0.127, allocations: 4 kB / 480.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.1272, allocations: 47.95 kB / 481 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.194e-06/0.1272, allocations: 0 / 481 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.1272, allocations: 4 kB / 481 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001133/0.1273, allocations: 51.86 kB / 481 MB, free: 4.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1273, allocations: 0 / 481 MB, free: 4.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1273, allocations: 0 / 481 MB, free: 4.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1273, allocations: 3.938 kB / 481 MB, free: 4.262 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.0003844/0.1277, allocations: 357.2 kB / 481.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1278, allocations: 8.031 kB / 481.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.341e-05/0.1278, allocations: 38.75 kB / 481.4 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.176e-05/0.1278, allocations: 0.9375 kB / 481.4 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.128, allocations: 160.4 kB / 481.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.128, allocations: 384 / 481.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.128, allocations: 384 / 481.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.605e-05/0.1281, allocations: 30.27 kB / 481.6 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1281, allocations: 7.922 kB / 481.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.1281, allocations: 0 / 481.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1281, allocations: 0 / 481.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.189e-05/0.1282, allocations: 3.938 kB / 481.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001674/0.1283, allocations: 153.7 kB / 481.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.057e-05/0.1284, allocations: 14.58 kB / 481.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.474e-05/0.1284, allocations: 4.953 kB / 481.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.1284, allocations: 4 kB / 481.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.948e-05/0.1285, allocations: 60.25 kB / 481.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1285, allocations: 0 / 481.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001849/0.1287, allocations: 75.28 kB / 481.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.1288, allocations: 77.11 kB / 482 MB, free: 3.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.249e-05/0.1288, allocations: 89.86 kB / 482.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.1289, allocations: 25.7 kB / 482.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.926e-05/0.1289, allocations: 80.14 kB / 482.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.1289, allocations: 4 kB / 482.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/0.129, allocations: 13.7 kB / 482.2 MB, free: 2.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1291, allocations: 311 kB / 482.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.008e-05/0.1291, allocations: 4 kB / 482.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.049e-06/0.1292, allocations: 4 kB / 482.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.999e-05/0.1292, allocations: 64.27 kB / 482.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1292, allocations: 0 / 482.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.822e-05/0.1293, allocations: 63.33 kB / 482.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.757e-05/0.1294, allocations: 33.7 kB / 482.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1294, allocations: 3.938 kB / 482.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.1294, allocations: 3.938 kB / 482.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1294, allocations: 4.094 kB / 482.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.1294, allocations: 0 / 482.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.588e-05/0.1294, allocations: 0 / 482.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.1295, allocations: 4 kB / 482.7 MB, free: 2.309 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.000101/0.1296, allocations: 135.5 kB / 482.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-06/0.1296, allocations: 0 / 482.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.232e-05/0.1296, allocations: 11.05 kB / 482.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1296, allocations: 7.938 kB / 482.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.1296, allocations: 4 kB / 482.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.1296, allocations: 4 kB / 482.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.1297, allocations: 141.7 kB / 483 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1298, allocations: 0 / 483 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1298, allocations: 0 / 483 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1298, allocations: 4 kB / 483 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.1298, allocations: 3.938 kB / 483 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.1298, allocations: 3.984 kB / 483 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1298, allocations: 0 / 483 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.1299, allocations: 94.78 kB / 483.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.72e-05/0.13, allocations: 81.38 kB / 483.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.13, allocations: 3.938 kB / 483.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/0.13, allocations: 0 / 483.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.453e-05/0.13, allocations: 0 / 483.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.13, allocations: 4 kB / 483.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.553e-05/0.1301, allocations: 75.28 kB / 483.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1301, allocations: 0 / 483.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002446/0.1303, allocations: 16 kB / 483.3 MB, free: 1.625 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.0008284/0.1312, allocations: 0.74 MB / 484 MB, free: 0.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.1313, allocations: 63.41 kB / 484.1 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1313, allocations: 3.938 kB / 484.1 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.333e-05/0.1313, allocations: 59.45 kB / 484.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.1315, allocations: 4 kB / 484.2 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003271/0.1318, allocations: 110.6 kB / 484.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.1322, allocations: 0.6729 MB / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.552e-06/0.1322, allocations: 4 kB / 484.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.302e-05/0.1322, allocations: 7.438 kB / 485 MB, free: 15.87 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1322, allocations: 0 / 485 MB, free: 15.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.024/0.1562, allocations: 1.376 MB / 486.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.779/7.935, allocations: 13.02 kB / 486.3 MB, free: 14.55 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_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_TestWriteFile.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1)