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.001414/0.001414, allocations: 108 kB / 15.61 MB, free: 152 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.001521/0.001521, allocations: 190.5 kB / 16.53 MB, free: 6.664 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.279/2.279, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.89 kB / 0.8126 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6465/0.6479, allocations: 140.4 MB / 0.9497 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.00195/0.6499, allocations: 0.537 MB / 0.9503 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.6514, allocations: 1.186 MB / 0.9514 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.632e-05/0.6514, allocations: 0 / 0.9514 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.6516, allocations: 17.34 kB / 0.9514 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.366e-05/0.6516, allocations: 3.938 kB / 0.9514 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006336/0.6522, allocations: 276.8 kB / 0.9517 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.6524, allocations: 75.38 kB / 0.9518 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.723e-05/0.6525, allocations: 7.766 kB / 0.9518 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.469e-05/0.6525, allocations: 34.45 kB / 0.9518 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.721e-05/0.6526, allocations: 37.59 kB / 0.9518 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.881e-05/0.6526, allocations: 8.312 kB / 0.9518 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003879/0.653, allocations: 185.5 kB / 0.952 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.845e-05/0.6531, allocations: 12.22 kB / 0.952 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.792e-05/0.6531, allocations: 32.28 kB / 0.9521 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.6534, allocations: 260.5 kB / 0.9523 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.6534, allocations: 4 kB / 0.9523 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.334e-06/0.6534, allocations: 0 / 0.9523 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.6535, allocations: 3.938 kB / 0.9523 GB, free: 7.309 MB / 0.7169 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.0003373/0.6538, allocations: 439.7 kB / 0.9527 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.6538, allocations: 10.19 kB / 0.9528 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.187e-05/0.6539, allocations: 106 kB / 0.9529 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.637e-05/0.6539, allocations: 86.09 kB / 0.9529 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.821e-05/0.654, allocations: 250.8 kB / 0.9532 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.6541, allocations: 161.4 kB / 0.9533 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.6541, allocations: 157.5 kB / 0.9535 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.881e-05/0.6542, allocations: 108.9 kB / 0.9536 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.6542, allocations: 76.53 kB / 0.9537 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.6542, allocations: 150.6 kB / 0.9538 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.6542, allocations: 158.5 kB / 0.954 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.231e-05/0.6543, allocations: 151.9 kB / 0.9541 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002029/0.6545, allocations: 468.7 kB / 0.9545 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.161e-05/0.6545, allocations: 167.2 kB / 0.9547 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.681e-05/0.6545, allocations: 88.14 kB / 0.9548 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.6546, allocations: 79.22 kB / 0.9549 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.977e-05/0.6546, allocations: 111.1 kB / 0.955 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 9.22e-07/0.6546, allocations: 0 / 0.955 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 9.695e-05/0.6547, allocations: 40.08 kB / 0.955 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.6547, allocations: 128.2 kB / 0.9551 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.6549, allocations: 150.1 kB / 0.9553 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.6549, allocations: 28.61 kB / 0.9553 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.213e-05/0.6549, allocations: 88.33 kB / 0.9554 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-06/0.6549, allocations: 1.375 kB / 0.9554 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-05/0.655, allocations: 43.22 kB / 0.9554 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.033e-05/0.655, allocations: 320 kB / 0.9557 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.6552, allocations: 62.09 kB / 0.9558 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.313e-05/0.6553, allocations: 60.17 kB / 0.9558 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.6554, allocations: 100.4 kB / 0.9559 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.6554, allocations: 0 / 0.9559 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003824/0.6558, allocations: 234.6 kB / 0.9562 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.6558, allocations: 45.94 kB / 0.9562 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.6558, allocations: 1.188 kB / 0.9562 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.6558, allocations: 0 / 0.9562 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.543e-06/0.6558, allocations: 5.031 kB / 0.9562 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.6559, allocations: 0 / 0.9562 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002966/0.6562, allocations: 25.39 kB / 0.9562 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.728e-05/0.6562, allocations: 14.3 kB / 0.9563 GB, free: 3.422 MB / 0.7169 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 9.531e-05/0.6563, allocations: 206.9 kB / 0.9565 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.389e-05/0.6564, allocations: 115.7 kB / 0.9566 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.221e-05/0.6564, allocations: 115.3 kB / 0.9567 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.809e-05/0.6564, allocations: 181.3 kB / 0.9568 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.192e-05/0.6565, allocations: 177.4 kB / 0.957 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.111e-05/0.6565, allocations: 184.3 kB / 0.9572 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.6566, allocations: 413.4 kB / 0.9576 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.6566, allocations: 108.9 kB / 0.9577 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.372e-05/0.6567, allocations: 110.5 kB / 0.9578 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.2e-05/0.6567, allocations: 181.7 kB / 0.958 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.6567, allocations: 176.3 kB / 0.9581 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.108e-05/0.6567, allocations: 189.5 kB / 0.9583 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.038e-05/0.6568, allocations: 177.5 kB / 0.9585 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.712e-05/0.6568, allocations: 309 kB / 0.9588 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.963e-05/0.6569, allocations: 192.1 kB / 0.959 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.6569, allocations: 185.3 kB / 0.9591 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.283e-05/0.657, allocations: 106.1 kB / 0.9592 GB, free: 192 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.906e-05/0.657, allocations: 185.3 kB / 0.9594 GB, free: 0 / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.634e-05/0.657, allocations: 101 kB / 0.9595 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.984e-05/0.6571, allocations: 109.8 kB / 0.9596 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6571, allocations: 0 / 0.9596 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003519/0.6575, allocations: 71.73 kB / 0.9597 GB, free: 15.78 MB / 0.7325 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.003385/0.6609, allocations: 1.032 MB / 0.9607 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000347/0.6612, allocations: 215.8 kB / 0.9609 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6613, allocations: 0 / 0.9609 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.525e-06/0.6613, allocations: 0 / 0.9609 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.6617, allocations: 464.3 kB / 0.9613 GB, free: 14.28 MB / 0.7325 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.001801/0.6635, allocations: 1.854 MB / 0.9632 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.6638, allocations: 0.6844 MB / 0.9638 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.448e-05/0.6638, allocations: 53.88 kB / 0.9639 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.002e-05/0.6639, allocations: 20.83 kB / 0.9639 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.6639, allocations: 0 / 0.9639 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4628/1.127, allocations: 3.667 MB / 0.9675 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.506/8.633, allocations: 7.266 kB / 0.9675 GB, free: 9.922 MB / 0.7325 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)