Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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.Exchange,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",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.007321/0.007322, allocations: 100.9 kB / 15.73 MB, free: 5.988 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.001545/0.001545, allocations: 195.6 kB / 16.67 MB, free: 5.926 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.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.431/2.431, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 62.25 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2577, allocations: 140.4 MB / 1.087 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.002219/0.26, allocations: 0.5541 MB / 1.088 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001802/0.2619, allocations: 1.189 MB / 1.089 GB, free: 308 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.625e-05/0.2619, allocations: 4 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.262, allocations: 11.94 kB / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.154e-05/0.2621, allocations: 0 / 1.089 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008371/0.2629, allocations: 277.7 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001951/0.2631, allocations: 79.8 kB / 1.09 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.105e-05/0.2632, allocations: 11.92 kB / 1.09 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.676e-05/0.2633, allocations: 39.91 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.2634, allocations: 43.89 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.2634, allocations: 8 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004791/0.2639, allocations: 203.6 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.168e-05/0.2639, allocations: 11.97 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.965e-05/0.264, allocations: 23.86 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.2644, allocations: 255.5 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2644, allocations: 0 / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2644, allocations: 0 / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.2644, allocations: 0 / 1.09 GB, free: 15.35 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.0004513/0.2649, allocations: 443.9 kB / 1.091 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.265, allocations: 8.031 kB / 1.091 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/0.265, allocations: 110 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.2651, allocations: 88.22 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.2653, allocations: 259.5 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.176e-05/0.2653, allocations: 154.9 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.599e-05/0.2654, allocations: 158.9 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.957e-05/0.2655, allocations: 108.9 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.2655, allocations: 83.27 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.574e-05/0.2656, allocations: 150.6 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.308e-05/0.2656, allocations: 150.6 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.425e-05/0.2657, allocations: 158.5 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003047/0.266, allocations: 469.8 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.831e-05/0.2661, allocations: 177.1 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.874e-05/0.2661, allocations: 80.14 kB / 1.093 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.2662, allocations: 79.22 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.2662, allocations: 105.8 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 1.162e-06/0.2662, allocations: 0 / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 0.0001065/0.2663, allocations: 41.64 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.2664, allocations: 126.7 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.2665, allocations: 146.5 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.2666, allocations: 29.7 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.25e-05/0.2666, allocations: 92.05 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-06/0.2666, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.376e-05/0.2667, allocations: 41.69 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.2668, allocations: 326.8 kB / 1.094 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.267, allocations: 55.95 kB / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.2671, allocations: 68 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001314/0.2672, allocations: 94.52 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2672, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003911/0.2676, allocations: 231.1 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.286e-05/0.2677, allocations: 49.62 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2677, allocations: 0 / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.2677, allocations: 0 / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.2677, allocations: 0 / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.2677, allocations: 4.062 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003459/0.2681, allocations: 27.88 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.2681, allocations: 12 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI2[2],yI2[1],yI1[1]) * 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.0001313/0.2683, allocations: 197.1 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.971e-05/0.2684, allocations: 116.8 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.369e-05/0.2684, allocations: 116.5 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.706e-05/0.2685, allocations: 184.3 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.401e-05/0.2685, allocations: 184.2 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.399e-05/0.2686, allocations: 176.3 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/0.2688, allocations: 417.1 kB / 1.095 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.264e-05/0.2689, allocations: 104.9 kB / 1.095 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.879e-05/0.2689, allocations: 101 kB / 1.096 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.165e-05/0.269, allocations: 188.2 kB / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.391e-05/0.2691, allocations: 184.3 kB / 1.096 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.457e-05/0.2691, allocations: 180.2 kB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.964e-05/0.2692, allocations: 180.2 kB / 1.096 GB, free: 8.613 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.2693, allocations: 315.7 kB / 1.097 GB, free: 8.281 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.584e-05/0.2694, allocations: 182 kB / 1.097 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.311e-05/0.2695, allocations: 184.2 kB / 1.097 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.611e-05/0.2696, allocations: 109 kB / 1.097 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.57e-05/0.2697, allocations: 176.3 kB / 1.097 GB, free: 7.598 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.654e-05/0.2697, allocations: 104.9 kB / 1.097 GB, free: 7.488 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.448e-05/0.2698, allocations: 117.4 kB / 1.097 GB, free: 7.375 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2698, allocations: 0 / 1.097 GB, free: 7.375 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003856/0.2702, allocations: 67.98 kB / 1.097 GB, free: 7.309 MB / 0.8575 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.0009744/0.2712, allocations: 1.035 MB / 1.098 GB, free: 6.32 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002831/0.2715, allocations: 215.3 kB / 1.099 GB, free: 6.098 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2715, allocations: 4.062 kB / 1.099 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.915e-06/0.2715, allocations: 0 / 1.099 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.2718, allocations: 462.1 kB / 1.099 GB, free: 5.641 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001846/0.2737, allocations: 1.854 MB / 1.101 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.274, allocations: 0.6768 MB / 1.102 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.414e-05/0.2741, allocations: 63.86 kB / 1.102 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.781e-05/0.2741, allocations: 11.44 kB / 1.102 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of SimCode: time 4.71e-07/0.2741, allocations: 0 / 1.102 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.2966, allocations: 3.721 MB / 1.105 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.945/8.242, allocations: 3.938 kB / 1.105 GB, free: 15.25 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_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_Exchange.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1)