Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00594/0.005939, allocations: 102 kB / 15.73 MB, free: 6.02 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.001255/0.001255, allocations: 194.3 kB / 16.67 MB, free: 5.93 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 59.91 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7996/0.8015, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject): time 0.001795/0.8033, allocations: 0.5421 MB / 1.088 GB, free: 4.953 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001509/0.8049, allocations: 1.131 MB / 1.089 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.573e-05/0.8049, allocations: 1.094 kB / 1.089 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.805, allocations: 6.719 kB / 1.089 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.405e-05/0.8051, allocations: 3.938 kB / 1.089 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006599/0.8058, allocations: 168.4 kB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.958e-05/0.8059, allocations: 16.33 kB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.677e-05/0.8059, allocations: 10.14 kB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.518e-05/0.806, allocations: 7.047 kB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.217e-05/0.806, allocations: 6.047 kB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.806, allocations: 0 / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004932/0.8065, allocations: 198.4 kB / 1.089 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.678e-05/0.8066, allocations: 10.66 kB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.805e-05/0.8066, allocations: 8.328 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004031/0.8071, allocations: 198.1 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.8071, allocations: 0 / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.545e-06/0.8071, allocations: 1.422 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.8071, allocations: 0 / 1.09 GB, free: 3.918 MB / 0.8575 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.0003979/0.8075, allocations: 368.5 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.8076, allocations: 8.938 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.209e-05/0.8076, allocations: 106.5 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.127e-05/0.8077, allocations: 82.41 kB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.8078, allocations: 251.2 kB / 1.09 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.8078, allocations: 155.8 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.407e-05/0.8079, allocations: 152.7 kB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.603e-05/0.8079, allocations: 106.8 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.8079, allocations: 75.28 kB / 1.091 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.808, allocations: 158.5 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.629e-05/0.808, allocations: 151.7 kB / 1.091 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.802e-05/0.808, allocations: 150.6 kB / 1.091 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002294/0.8083, allocations: 453.1 kB / 1.092 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.042e-05/0.8083, allocations: 170.2 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.686e-05/0.8084, allocations: 85.55 kB / 1.092 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.8084, allocations: 79.22 kB / 1.092 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.863e-05/0.8085, allocations: 107.4 kB / 1.092 GB, free: 17.19 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=0): time 8.91e-07/0.8085, allocations: 0 / 1.092 GB, free: 17.19 MB / 0.8731 GB Notification: Performance of matching and sorting (n=0): time 8.725e-05/0.8086, allocations: 36.66 kB / 1.092 GB, free: 17.15 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.837e-05/0.8087, allocations: 131.8 kB / 1.092 GB, free: 17.01 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.8088, allocations: 102.4 kB / 1.092 GB, free: 16.91 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.8089, allocations: 26.86 kB / 1.093 GB, free: 16.88 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 5.689e-05/0.8089, allocations: 82.05 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-06/0.8089, allocations: 0 / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.115e-05/0.809, allocations: 25.67 kB / 1.093 GB, free: 16.77 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.8091, allocations: 316.6 kB / 1.093 GB, free: 16.45 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.391e-05/0.8091, allocations: 10.41 kB / 1.093 GB, free: 16.45 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.289e-05/0.8092, allocations: 9.531 kB / 1.093 GB, free: 16.45 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.437e-05/0.8093, allocations: 23.31 kB / 1.093 GB, free: 16.44 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.8093, allocations: 1.125 kB / 1.093 GB, free: 16.44 MB / 0.8731 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001577/0.8094, allocations: 54.7 kB / 1.093 GB, free: 16.4 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.8095, allocations: 9.844 kB / 1.093 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.8095, allocations: 1.156 kB / 1.093 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.8095, allocations: 0 / 1.093 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.434e-06/0.8095, allocations: 1.859 kB / 1.093 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.8095, allocations: 4.125 kB / 1.093 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.148e-05/0.8096, allocations: 7.172 kB / 1.093 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.8096, allocations: 2.141 kB / 1.093 GB, free: 16.39 MB / 0.8731 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 0.0001274/0.8098, allocations: 188.5 kB / 1.093 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-05/0.8098, allocations: 107.8 kB / 1.093 GB, free: 16.09 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.851e-05/0.8099, allocations: 111 kB / 1.093 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.444e-05/0.81, allocations: 180.8 kB / 1.094 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.852e-05/0.8101, allocations: 185.9 kB / 1.094 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.597e-05/0.8102, allocations: 178.4 kB / 1.094 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002451/0.8104, allocations: 403.2 kB / 1.094 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.972e-05/0.8105, allocations: 113.5 kB / 1.094 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.129e-05/0.8105, allocations: 102.9 kB / 1.095 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.038e-05/0.8106, allocations: 185.8 kB / 1.095 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.176e-05/0.8107, allocations: 182.2 kB / 1.095 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-05/0.8107, allocations: 181.9 kB / 1.095 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.2e-05/0.8108, allocations: 178.2 kB / 1.095 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001617/0.811, allocations: 309.7 kB / 1.096 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.8111, allocations: 188.3 kB / 1.096 GB, free: 13.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.087e-05/0.8112, allocations: 182 kB / 1.096 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.039e-05/0.8113, allocations: 103.4 kB / 1.096 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.8113, allocations: 177 kB / 1.096 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.112e-05/0.8114, allocations: 106.6 kB / 1.096 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 5.771e-05/0.8115, allocations: 89.02 kB / 1.096 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8115, allocations: 0 / 1.096 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004547/0.8119, allocations: 63.45 kB / 1.096 GB, free: 12.81 MB / 0.8731 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.001103/0.813, allocations: 1.017 MB / 1.097 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 9.954e-05/0.8131, allocations: 13.58 kB / 1.097 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.8132, allocations: 0.7188 kB / 1.097 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 2.695e-06/0.8132, allocations: 1.062 kB / 1.097 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.8135, allocations: 458.2 kB / 1.098 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.8147, allocations: 1.325 MB / 1.099 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.815, allocations: 0.6734 MB / 1.1 GB, free: 9.457 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000148/0.8151, allocations: 9.406 kB / 1.1 GB, free: 9.457 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.89e-05/0.8152, allocations: 13.83 kB / 1.1 GB, free: 9.449 MB / 0.8731 GB Notification: Performance of SimCode: time 5.81e-07/0.8152, allocations: 4.031 kB / 1.1 GB, free: 9.445 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02026/0.8354, allocations: 2.558 MB / 1.102 GB, free: 8.785 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.951/8.786, allocations: 8.859 kB / 1.102 GB, free: 8.777 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_ExchangeWithPassPythonObject.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe 2>&1)