Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_ExchangeWithPassPythonObject",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_ExchangeWithPassPythonObject",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.001815/0.001816, allocations: 108 kB / 15.6 MB, free: 132 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.002074/0.002075, allocations: 198.6 kB / 16.54 MB, free: 6.672 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.476/2.476, allocations: 437.1 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 63.89 kB / 0.8694 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5221/0.5236, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject): time 0.001877/0.5255, allocations: 0.5265 MB / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001435/0.5269, allocations: 1.132 MB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.166e-05/0.527, allocations: 0 / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.689e-05/0.5271, allocations: 3.984 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.786e-05/0.5271, allocations: 3.984 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000493/0.5276, allocations: 171.4 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.866e-05/0.5277, allocations: 11.98 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.093e-05/0.5277, allocations: 4 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.324e-05/0.5278, allocations: 11.98 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.494e-05/0.5278, allocations: 15.92 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.5278, allocations: 0 / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003633/0.5282, allocations: 179.7 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.465e-05/0.5282, allocations: 7.984 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.5283, allocations: 4 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.5286, allocations: 191.6 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.5286, allocations: 0 / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.302e-06/0.5286, allocations: 0 / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.535e-06/0.5286, allocations: 4 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003296/0.5289, allocations: 373.7 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.529, allocations: 8.031 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.062e-05/0.529, allocations: 110 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.553e-05/0.5291, allocations: 80.22 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.5292, allocations: 235.7 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.5293, allocations: 150.9 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.286e-05/0.5293, allocations: 166.8 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.93e-05/0.5294, allocations: 104.9 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.5294, allocations: 79.27 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.782e-05/0.5295, allocations: 150.6 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.802e-05/0.5295, allocations: 150.6 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.231e-05/0.5295, allocations: 154.6 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002428/0.5298, allocations: 461.9 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.7e-05/0.5299, allocations: 173 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.625e-05/0.5299, allocations: 80.14 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.5299, allocations: 83.22 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.53, allocations: 109.8 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 9.01e-07/0.53, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 7.134e-05/0.53, allocations: 25.7 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.5301, allocations: 130.6 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.57e-05/0.5302, allocations: 105.8 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.5302, allocations: 25.7 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.116e-05/0.5303, allocations: 80.14 kB / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.833e-06/0.5303, allocations: 4 kB / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.5303, allocations: 21.72 kB / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.14e-05/0.5304, allocations: 314.8 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.504e-05/0.5304, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.786e-05/0.5305, allocations: 15.98 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.733e-05/0.5305, allocations: 16.86 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.5305, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000128/0.5307, allocations: 73.55 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.5307, allocations: 4 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.5307, allocations: 0 / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.5307, allocations: 0 / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.5307, allocations: 0 / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.5307, allocations: 0 / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.527e-05/0.5308, allocations: 4.047 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.5308, allocations: 4 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 2 * Algorithm blocks: 0 * 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 8.318e-05/0.5309, allocations: 189.1 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.43e-05/0.531, allocations: 112.9 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.727e-05/0.531, allocations: 112.2 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.464e-05/0.5311, allocations: 180.2 kB / 1.024 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.836e-05/0.5311, allocations: 180.3 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.511e-05/0.5312, allocations: 184.2 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.5314, allocations: 401.2 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-05/0.5314, allocations: 112.9 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.058e-05/0.5314, allocations: 109.1 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.553e-05/0.5315, allocations: 180.2 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.675e-05/0.5315, allocations: 184.2 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-05/0.5316, allocations: 180.2 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.706e-05/0.5316, allocations: 188.2 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000104/0.5317, allocations: 307.8 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.529e-05/0.5318, allocations: 182 kB / 1.026 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/0.5319, allocations: 176.3 kB / 1.026 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.013e-05/0.5319, allocations: 112.9 kB / 1.026 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.256e-05/0.532, allocations: 188.2 kB / 1.026 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.959e-05/0.532, allocations: 108.9 kB / 1.026 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.551e-05/0.5321, allocations: 79.28 kB / 1.026 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5321, allocations: 0 / 1.026 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003139/0.5324, allocations: 55.98 kB / 1.026 GB, free: 8.883 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0008134/0.5332, allocations: 1.017 MB / 1.027 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.898e-05/0.5333, allocations: 11.94 kB / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.5333, allocations: 0 / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.903e-06/0.5333, allocations: 0 / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.5336, allocations: 460.8 kB / 1.028 GB, free: 7.438 MB / 0.7794 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.5347, allocations: 1.341 MB / 1.029 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.5349, allocations: 0.6768 MB / 1.03 GB, free: 5.312 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.166e-05/0.5349, allocations: 7.984 kB / 1.03 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.535, allocations: 11.44 kB / 1.03 GB, free: 5.293 MB / 0.7794 GB Notification: Performance of SimCode: time 2.8e-07/0.535, allocations: 0 / 1.03 GB, free: 5.293 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5434/1.078, allocations: 2.514 MB / 1.032 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.23/8.308, allocations: 4.375 kB / 1.032 GB, free: 2.891 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_ExchangeWithPassPythonObject.fmu > Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe 2>&1)