Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001639/0.001639, 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.001842/0.001842, allocations: 198.3 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.716/2.716, allocations: 469.4 MB / 0.742 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 60.58 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.312, allocations: 159.1 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject): time 0.002167/0.3142, allocations: 0.5399 MB / 1.064 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.3158, allocations: 1.126 MB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.696e-05/0.3159, allocations: 4 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001053/0.316, allocations: 4 kB / 1.065 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.959e-05/0.3161, allocations: 0 / 1.065 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006812/0.3168, allocations: 167.4 kB / 1.065 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.526e-05/0.3168, allocations: 23.97 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.013e-05/0.3169, allocations: 0 / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.362e-05/0.3169, allocations: 7.984 kB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.088e-05/0.317, allocations: 11.88 kB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.317, allocations: 4 kB / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005301/0.3176, allocations: 187.6 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.214e-05/0.3176, allocations: 8 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.358e-05/0.3177, allocations: 4 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004186/0.3181, allocations: 187.7 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3181, allocations: 0 / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.717e-06/0.3181, allocations: 7.922 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.3181, allocations: 0 / 1.066 GB, free: 12.3 MB / 0.8262 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.0004425/0.3186, allocations: 371.8 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.3186, allocations: 8.031 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.728e-05/0.3187, allocations: 106 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.362e-05/0.3188, allocations: 76.22 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.319, allocations: 247.6 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.848e-05/0.319, allocations: 158.9 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-05/0.3191, allocations: 150.9 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.266e-05/0.3192, allocations: 112.9 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.31e-05/0.3192, allocations: 75.28 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.297e-05/0.3193, allocations: 150.6 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.723e-05/0.3194, allocations: 162.5 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.816e-05/0.3194, allocations: 150.6 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003059/0.3197, allocations: 446 kB / 1.068 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.067e-05/0.3198, allocations: 173.1 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.762e-05/0.3199, allocations: 84.14 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.3199, allocations: 79.22 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.829e-05/0.32, allocations: 113.8 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 1.363e-06/0.32, allocations: 0 / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.000104/0.3201, allocations: 29.61 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.3201, allocations: 130.6 kB / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.3203, allocations: 113.8 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.3203, allocations: 25.7 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.656e-05/0.3204, allocations: 80.14 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.767e-06/0.3204, allocations: 0 / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.222e-05/0.3204, allocations: 17.72 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3206, allocations: 318.8 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.409e-05/0.3206, allocations: 4 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.34e-05/0.3206, allocations: 11.98 kB / 1.069 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.137e-05/0.3207, allocations: 24.95 kB / 1.069 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3207, allocations: 0 / 1.069 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001552/0.3209, allocations: 65.53 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.3209, allocations: 7.938 kB / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3209, allocations: 0 / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.3209, allocations: 0 / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.3209, allocations: 0 / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.321, allocations: 0 / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.645e-05/0.321, allocations: 4 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.3211, allocations: 4.031 kB / 1.069 GB, free: 8.633 MB / 0.8262 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.0001054/0.3212, allocations: 185.7 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.263e-05/0.3212, allocations: 112.9 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.647e-05/0.3213, allocations: 112 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.594e-05/0.3214, allocations: 176.3 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.688e-05/0.3214, allocations: 184.3 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-05/0.3215, allocations: 180.2 kB / 1.07 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002275/0.3217, allocations: 405.2 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.447e-05/0.3218, allocations: 112.9 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.451e-05/0.3218, allocations: 108.9 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.798e-05/0.3219, allocations: 180.2 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-05/0.3219, allocations: 188.2 kB / 1.071 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.203e-05/0.322, allocations: 180.3 kB / 1.071 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-05/0.3221, allocations: 184.2 kB / 1.071 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.3222, allocations: 303.7 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.193e-05/0.3223, allocations: 194 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.521e-05/0.3223, allocations: 176.3 kB / 1.072 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.883e-05/0.3224, allocations: 104.9 kB / 1.072 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.3225, allocations: 184.2 kB / 1.072 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.3225, allocations: 104.9 kB / 1.072 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.063e-05/0.3226, allocations: 83.28 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of sort global known variables: time 9e-08/0.3226, allocations: 0 / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003156/0.3229, allocations: 55.98 kB / 1.073 GB, free: 4.973 MB / 0.8262 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.0009377/0.3238, allocations: 1.015 MB / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.417e-05/0.3239, allocations: 8 kB / 1.074 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.3239, allocations: 0 / 1.074 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.004e-06/0.324, allocations: 3.938 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.3244, allocations: 455.8 kB / 1.074 GB, free: 3.531 MB / 0.8262 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.001238/0.3256, allocations: 1.329 MB / 1.075 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.3259, allocations: 0.6768 MB / 1.076 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.606e-05/0.326, allocations: 11.89 kB / 1.076 GB, free: 1.406 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.242e-05/0.326, allocations: 15.42 kB / 1.076 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.326, allocations: 0 / 1.076 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5823/0.9083, allocations: 2.517 MB / 1.078 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.334/8.242, allocations: 16 kB / 1.078 GB, free: 15 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_IO_Python_3_8_Functions_Examples_ExchangeWithPassPythonObject.fmu > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.pipe 2>&1)