Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",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.001111/0.001111, 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.001379/0.001379, allocations: 195.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.799/1.799, allocations: 292.3 MB / 0.5489 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00239/0.002391, allocations: 77.41 kB / 0.6716 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2687, allocations: 114.5 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6256/0.8943, allocations: 149 MB / 0.929 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001606/0.896, allocations: 1.134 MB / 0.9301 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.8962, allocations: 3.094 kB / 0.9301 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003921/0.8966, allocations: 61.95 kB / 0.9301 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009235/0.8975, allocations: 296.6 kB / 0.9304 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004412/0.898, allocations: 166.3 kB / 0.9306 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004517/0.8985, allocations: 220.9 kB / 0.9308 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.8986, allocations: 60.64 kB / 0.9309 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.195e-05/0.8987, allocations: 49.62 kB / 0.9309 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.8e-05/0.8988, allocations: 61.84 kB / 0.931 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.8988, allocations: 11.53 kB / 0.931 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000614/0.8994, allocations: 371.4 kB / 0.9313 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.837e-05/0.8995, allocations: 29.83 kB / 0.9314 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.602e-05/0.8996, allocations: 66.45 kB / 0.9314 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000464/0.9001, allocations: 289 kB / 0.9317 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.9001, allocations: 0 / 0.9317 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.023e-06/0.9001, allocations: 2.594 kB / 0.9317 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.73e-06/0.9001, allocations: 0 / 0.9317 GB, free: 3.254 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008074/0.9009, allocations: 463.2 kB / 0.9321 GB, free: 18.85 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.901, allocations: 8.219 kB / 0.9321 GB, free: 18.85 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.875e-05/0.901, allocations: 45.83 kB / 0.9322 GB, free: 18.81 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.9013, allocations: 44.55 kB / 0.9322 GB, free: 18.79 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.9015, allocations: 217.4 kB / 0.9324 GB, free: 18.58 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.9016, allocations: 9.656 kB / 0.9324 GB, free: 18.58 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.686e-05/0.9016, allocations: 9.5 kB / 0.9325 GB, free: 18.58 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.9019, allocations: 116.3 kB / 0.9326 GB, free: 18.55 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.9019, allocations: 0 / 0.9326 GB, free: 18.55 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.9019, allocations: 3.875 kB / 0.9326 GB, free: 18.55 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.9019, allocations: 8.672 kB / 0.9326 GB, free: 18.54 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.9022, allocations: 92.36 kB / 0.9327 GB, free: 18.54 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000673/0.9029, allocations: 465.7 kB / 0.9331 GB, free: 18.24 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.9031, allocations: 87.69 kB / 0.9332 GB, free: 18.21 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.9032, allocations: 39.62 kB / 0.9332 GB, free: 18.21 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.9033, allocations: 2.188 kB / 0.9332 GB, free: 18.21 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.9033, allocations: 36.14 kB / 0.9333 GB, free: 18.17 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.9033, allocations: 4 kB / 0.9333 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004499/0.9038, allocations: 141.6 kB / 0.9334 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.9038, allocations: 52.5 kB / 0.9335 GB, free: 18.06 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.904, allocations: 179.7 kB / 0.9336 GB, free: 17.96 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.904, allocations: 29.45 kB / 0.9337 GB, free: 17.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.462e-05/0.9041, allocations: 114 kB / 0.9338 GB, free: 17.84 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.9041, allocations: 30.27 kB / 0.9338 GB, free: 17.82 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.297e-05/0.9042, allocations: 24.19 kB / 0.9338 GB, free: 17.8 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.9043, allocations: 323.2 kB / 0.9341 GB, free: 17.48 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.9044, allocations: 34.73 kB / 0.9342 GB, free: 17.48 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.523e-05/0.9045, allocations: 31.62 kB / 0.9342 GB, free: 17.48 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.9047, allocations: 74 kB / 0.9343 GB, free: 17.48 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.9047, allocations: 5.094 kB / 0.9343 GB, free: 17.47 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002606/0.905, allocations: 123.4 kB / 0.9344 GB, free: 17.43 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.905, allocations: 4.531 kB / 0.9344 GB, free: 17.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.905, allocations: 0 / 0.9344 GB, free: 17.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.9051, allocations: 4.266 kB / 0.9344 GB, free: 17.43 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.9052, allocations: 17.06 kB / 0.9344 GB, free: 17.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.9052, allocations: 2.625 kB / 0.9344 GB, free: 17.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.245e-05/0.9053, allocations: 13.25 kB / 0.9344 GB, free: 17.42 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.9053, allocations: 2.016 kB / 0.9344 GB, free: 17.42 MB / 0.7325 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 (8): * Single equations (assignments): 8 * 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 prepare postOptimizeDAE: time 9.616e-05/0.9054, allocations: 124.5 kB / 0.9345 GB, free: 17.3 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.459e-05/0.9055, allocations: 14.27 kB / 0.9346 GB, free: 17.3 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003137/0.9058, allocations: 125 kB / 0.9347 GB, free: 17.26 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.9058, allocations: 0 / 0.9347 GB, free: 17.26 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.9058, allocations: 2.625 kB / 0.9347 GB, free: 17.26 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.9058, allocations: 4 kB / 0.9347 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/0.906, allocations: 224.2 kB / 0.9349 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.906, allocations: 2.625 kB / 0.9349 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.9061, allocations: 16.28 kB / 0.9349 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.9061, allocations: 0 / 0.9349 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.9062, allocations: 6.609 kB / 0.9349 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.9062, allocations: 1.203 kB / 0.9349 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.9062, allocations: 0.9375 kB / 0.9349 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002944/0.9065, allocations: 219.6 kB / 0.9351 GB, free: 16.91 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-05/0.9065, allocations: 93.33 kB / 0.9352 GB, free: 16.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.9066, allocations: 0 / 0.9352 GB, free: 16.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.9067, allocations: 8.031 kB / 0.9352 GB, free: 16.81 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.9067, allocations: 8.391 kB / 0.9352 GB, free: 16.81 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.9068, allocations: 2.625 kB / 0.9352 GB, free: 16.81 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001095/0.9069, allocations: 134.1 kB / 0.9354 GB, free: 16.73 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9069, allocations: 0 / 0.9354 GB, free: 16.73 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002555/0.9071, allocations: 29.84 kB / 0.9354 GB, free: 16.73 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 (7): * Single equations (assignments): 7 * 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.0006331/0.9078, allocations: 0.7532 MB / 0.9361 GB, free: 16.05 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002677/0.9081, allocations: 74.94 kB / 0.9362 GB, free: 16.05 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.9081, allocations: 0 / 0.9362 GB, free: 16.05 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.9082, allocations: 44.25 kB / 0.9362 GB, free: 16.05 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004275/0.9086, allocations: 32.05 kB / 0.9363 GB, free: 16.04 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.9106, allocations: 1.758 MB / 0.938 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.9109, allocations: 0.7046 MB / 0.9387 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.127e-05/0.911, allocations: 14 kB / 0.9387 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.149e-05/0.9111, allocations: 37.09 kB / 0.9387 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.9111, allocations: 0 / 0.9387 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01988/0.931, allocations: 3.152 MB / 0.9418 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/8.589, allocations: 9.219 kB / 0.9418 GB, free: 13.63 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)