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.0012/0.0012, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001285/0.001285, allocations: 194.2 kB / 16.13 MB, free: 6.668 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.511/1.511, allocations: 205.1 MB / 222 MB, free: 4.719 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.732/1.732, allocations: 292.3 MB / 0.5484 GB, free: 13.64 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.001425/0.001425, allocations: 71.77 kB / 0.6709 GB, free: 26.42 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.258, allocations: 114.5 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6802/0.9383, allocations: 146.7 MB / 0.9261 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.9398, allocations: 1.155 MB / 0.9272 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.94, allocations: 2.5 kB / 0.9272 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003714/0.9404, allocations: 50.22 kB / 0.9273 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0007096/0.9411, allocations: 281.5 kB / 0.9275 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003862/0.9415, allocations: 147.8 kB / 0.9277 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004606/0.942, allocations: 238.8 kB / 0.9279 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.9422, allocations: 47.66 kB / 0.9279 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.373e-05/0.9422, allocations: 47.36 kB / 0.928 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.9423, allocations: 64.48 kB / 0.928 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.289e-05/0.9424, allocations: 6.438 kB / 0.9281 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006523/0.943, allocations: 410.8 kB / 0.9284 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.798e-05/0.9431, allocations: 27.67 kB / 0.9285 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.863e-05/0.9432, allocations: 58.27 kB / 0.9285 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004719/0.9437, allocations: 298.4 kB / 0.9288 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.9437, allocations: 1 kB / 0.9288 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of FrontEnd: time 9.12e-07/0.9437, allocations: 0 / 0.9288 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.962e-06/0.9437, allocations: 0 / 0.9288 GB, free: 5.934 MB / 0.7325 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.001005/0.9447, allocations: 469.2 kB / 0.9293 GB, free: 21.52 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.9448, allocations: 10.03 kB / 0.9293 GB, free: 21.52 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.51e-05/0.9448, allocations: 42.91 kB / 0.9293 GB, free: 21.48 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003149/0.9451, allocations: 39.03 kB / 0.9293 GB, free: 21.48 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.9454, allocations: 217.7 kB / 0.9296 GB, free: 21.26 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.9454, allocations: 7.625 kB / 0.9296 GB, free: 21.26 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.9455, allocations: 19.19 kB / 0.9296 GB, free: 21.25 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.9458, allocations: 115.9 kB / 0.9297 GB, free: 21.22 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.9458, allocations: 0.9375 kB / 0.9297 GB, free: 21.22 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.9458, allocations: 1.562 kB / 0.9297 GB, free: 21.22 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.9458, allocations: 3.078 kB / 0.9297 GB, free: 21.22 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002817/0.9461, allocations: 94.33 kB / 0.9298 GB, free: 21.22 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007353/0.9468, allocations: 455 kB / 0.9302 GB, free: 20.93 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.9471, allocations: 94.55 kB / 0.9303 GB, free: 20.91 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.9472, allocations: 43.83 kB / 0.9304 GB, free: 20.89 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.9473, allocations: 1.297 kB / 0.9304 GB, free: 20.89 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.9473, allocations: 32.56 kB / 0.9304 GB, free: 20.86 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.9473, allocations: 0 / 0.9304 GB, free: 20.86 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0004744/0.9478, allocations: 145.8 kB / 0.9305 GB, free: 20.82 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.9478, allocations: 54.27 kB / 0.9306 GB, free: 20.75 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.948, allocations: 185.8 kB / 0.9308 GB, free: 20.65 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.9481, allocations: 26.36 kB / 0.9308 GB, free: 20.62 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 7.593e-05/0.9481, allocations: 116.7 kB / 0.9309 GB, free: 20.53 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.9482, allocations: 19.48 kB / 0.9309 GB, free: 20.52 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.394e-05/0.9482, allocations: 20.31 kB / 0.9309 GB, free: 20.5 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.9483, allocations: 329.6 kB / 0.9312 GB, free: 20.18 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.9485, allocations: 33.36 kB / 0.9313 GB, free: 20.18 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.9486, allocations: 36 kB / 0.9313 GB, free: 20.18 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.9488, allocations: 78.75 kB / 0.9314 GB, free: 20.17 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.9488, allocations: 0.6094 kB / 0.9314 GB, free: 20.17 MB / 0.7481 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000283/0.9491, allocations: 117.9 kB / 0.9315 GB, free: 20.13 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.9491, allocations: 5.094 kB / 0.9315 GB, free: 20.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.9491, allocations: 0.75 kB / 0.9315 GB, free: 20.13 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.9492, allocations: 5.094 kB / 0.9315 GB, free: 20.13 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.9493, allocations: 24.12 kB / 0.9315 GB, free: 20.13 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.9493, allocations: 0 / 0.9315 GB, free: 20.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.845e-05/0.9494, allocations: 11.95 kB / 0.9315 GB, free: 20.12 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.9494, allocations: 4.016 kB / 0.9315 GB, free: 20.12 MB / 0.7481 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 0.0001069/0.9496, allocations: 123.2 kB / 0.9317 GB, free: 20.01 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.816e-05/0.9496, allocations: 14.12 kB / 0.9317 GB, free: 20 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003472/0.9499, allocations: 130.2 kB / 0.9318 GB, free: 19.96 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.95, allocations: 2.188 kB / 0.9318 GB, free: 19.96 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.95, allocations: 0 / 0.9318 GB, free: 19.96 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.95, allocations: 1.688 kB / 0.9318 GB, free: 19.96 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002473/0.9502, allocations: 221.7 kB / 0.932 GB, free: 19.77 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.9502, allocations: 0.8438 kB / 0.932 GB, free: 19.77 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.9504, allocations: 17.47 kB / 0.932 GB, free: 19.77 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.9504, allocations: 0.9375 kB / 0.932 GB, free: 19.77 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.9504, allocations: 5.781 kB / 0.932 GB, free: 19.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.9504, allocations: 5.328 kB / 0.932 GB, free: 19.76 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.9504, allocations: 1.984 kB / 0.932 GB, free: 19.76 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003266/0.9507, allocations: 219.4 kB / 0.9323 GB, free: 19.62 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.9508, allocations: 92.62 kB / 0.9323 GB, free: 19.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.513e-05/0.9508, allocations: 2.359 kB / 0.9323 GB, free: 19.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.951, allocations: 9.328 kB / 0.9324 GB, free: 19.51 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.951, allocations: 4.828 kB / 0.9324 GB, free: 19.51 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.951, allocations: 2.406 kB / 0.9324 GB, free: 19.51 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001392/0.9512, allocations: 136.8 kB / 0.9325 GB, free: 19.44 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9512, allocations: 0 / 0.9325 GB, free: 19.44 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002492/0.9514, allocations: 22.44 kB / 0.9325 GB, free: 19.43 MB / 0.7481 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.0006495/0.9521, allocations: 0.7503 MB / 0.9332 GB, free: 18.77 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002604/0.9524, allocations: 80.05 kB / 0.9333 GB, free: 18.77 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.9524, allocations: 0 / 0.9333 GB, free: 18.77 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.9525, allocations: 42.38 kB / 0.9334 GB, free: 18.76 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.9529, allocations: 34.36 kB / 0.9334 GB, free: 18.76 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.955, allocations: 1.782 MB / 0.9351 GB, free: 17.5 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.9554, allocations: 0.7108 MB / 0.9358 GB, free: 16.8 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.297e-05/0.9555, allocations: 10.03 kB / 0.9358 GB, free: 16.8 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/0.9556, allocations: 39.14 kB / 0.9359 GB, free: 16.79 MB / 0.7481 GB Notification: Performance of SimCode: time 4.5e-07/0.9556, allocations: 1.203 kB / 0.9359 GB, free: 16.79 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0148/0.9704, allocations: 2.929 MB / 0.9387 GB, free: 16.48 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002342/0.9707, allocations: 219.1 kB / 0.9389 GB, free: 16.22 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.785, allocations: 0 / 0.9389 GB, free: 16.22 MB / 0.7481 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)