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.001587/0.001586, allocations: 105.4 kB / 15.7 MB, free: 24 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.001035/0.001036, allocations: 198.2 kB / 16.64 MB, free: 6.449 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.25/1.25, allocations: 205.1 MB / 222.5 MB, free: 4.586 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.604/1.604, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001368/0.001369, allocations: 71.98 kB / 0.6718 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2126, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.5235/0.7361, allocations: 149 MB / 0.9291 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001307/0.7375, allocations: 1.139 MB / 0.9302 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.7376, allocations: 2.625 kB / 0.9302 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003538/0.738, allocations: 55.48 kB / 0.9303 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006814/0.7387, allocations: 303 kB / 0.9306 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002999/0.739, allocations: 164.6 kB / 0.9307 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003746/0.7394, allocations: 222.3 kB / 0.931 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.7395, allocations: 57.95 kB / 0.931 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.669e-05/0.7396, allocations: 57.28 kB / 0.9311 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.814e-05/0.7397, allocations: 59.81 kB / 0.9311 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.876e-05/0.7397, allocations: 17.12 kB / 0.9311 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004602/0.7402, allocations: 361.8 kB / 0.9315 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.053e-05/0.7403, allocations: 34.75 kB / 0.9315 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.545e-05/0.7403, allocations: 62.11 kB / 0.9316 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003641/0.7407, allocations: 295.9 kB / 0.9319 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.7407, allocations: 0 / 0.9319 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.273e-06/0.7407, allocations: 0 / 0.9319 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.7407, allocations: 0 / 0.9319 GB, free: 2.84 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.0007134/0.7415, allocations: 469.3 kB / 0.9323 GB, free: 18.43 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.7415, allocations: 10.5 kB / 0.9323 GB, free: 18.43 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.119e-05/0.7415, allocations: 44.12 kB / 0.9324 GB, free: 18.39 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002577/0.7418, allocations: 35.38 kB / 0.9324 GB, free: 18.38 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003102/0.7421, allocations: 218.8 kB / 0.9326 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.7421, allocations: 9.188 kB / 0.9326 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.7422, allocations: 11.75 kB / 0.9326 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000255/0.7424, allocations: 118.6 kB / 0.9327 GB, free: 18.13 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.7425, allocations: 0 / 0.9327 GB, free: 18.13 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.7425, allocations: 11.75 kB / 0.9327 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.7425, allocations: 2.625 kB / 0.9327 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002313/0.7427, allocations: 90.72 kB / 0.9328 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006265/0.7434, allocations: 461.7 kB / 0.9333 GB, free: 17.82 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.7435, allocations: 89.62 kB / 0.9334 GB, free: 17.8 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.743e-05/0.7437, allocations: 39.83 kB / 0.9334 GB, free: 17.79 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.7437, allocations: 3.703 kB / 0.9334 GB, free: 17.79 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.7437, allocations: 32.88 kB / 0.9334 GB, free: 17.75 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.924e-06/0.7437, allocations: 4 kB / 0.9334 GB, free: 17.75 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.000392/0.7441, allocations: 146.3 kB / 0.9336 GB, free: 17.7 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.7442, allocations: 51.41 kB / 0.9336 GB, free: 17.64 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.7443, allocations: 182.6 kB / 0.9338 GB, free: 17.54 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.7443, allocations: 25.7 kB / 0.9338 GB, free: 17.51 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.305e-05/0.7444, allocations: 121.5 kB / 0.9339 GB, free: 17.42 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.7444, allocations: 21.19 kB / 0.934 GB, free: 17.4 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.7445, allocations: 19 kB / 0.934 GB, free: 17.39 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.7446, allocations: 329.4 kB / 0.9343 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.736e-05/0.7447, allocations: 30.48 kB / 0.9343 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.717e-05/0.7448, allocations: 32.19 kB / 0.9344 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.7449, allocations: 79.66 kB / 0.9344 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.745, allocations: 4 kB / 0.9344 GB, free: 17.05 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002313/0.7452, allocations: 117.3 kB / 0.9345 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.7452, allocations: 7.844 kB / 0.9346 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.7452, allocations: 0 / 0.9346 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.7452, allocations: 0 / 0.9346 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.7454, allocations: 20.75 kB / 0.9346 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.7454, allocations: 1.25 kB / 0.9346 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.189e-05/0.7455, allocations: 11.48 kB / 0.9346 GB, free: 17.01 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.7455, allocations: 7.312 kB / 0.9346 GB, free: 17.01 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 8.181e-05/0.7456, allocations: 129.8 kB / 0.9347 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/0.7456, allocations: 16.11 kB / 0.9347 GB, free: 16.88 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002798/0.7459, allocations: 117.7 kB / 0.9348 GB, free: 16.84 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.7459, allocations: 0 / 0.9348 GB, free: 16.84 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.7459, allocations: 0 / 0.9348 GB, free: 16.84 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.7459, allocations: 2.781 kB / 0.9348 GB, free: 16.84 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002096/0.7461, allocations: 226.7 kB / 0.9351 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.7461, allocations: 3.031 kB / 0.9351 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.359e-05/0.7462, allocations: 14.86 kB / 0.9351 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.7462, allocations: 0 / 0.9351 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.7463, allocations: 0 / 0.9351 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.7463, allocations: 6.734 kB / 0.9351 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.7463, allocations: 3.938 kB / 0.9351 GB, free: 16.64 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002624/0.7465, allocations: 211.4 kB / 0.9353 GB, free: 16.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.219e-05/0.7466, allocations: 94.47 kB / 0.9354 GB, free: 16.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.7466, allocations: 4.938 kB / 0.9354 GB, free: 16.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.7467, allocations: 8.109 kB / 0.9354 GB, free: 16.39 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.7468, allocations: 7.734 kB / 0.9354 GB, free: 16.39 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.7468, allocations: 4.516 kB / 0.9354 GB, free: 16.39 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.922e-05/0.7469, allocations: 134 kB / 0.9355 GB, free: 16.32 MB / 0.7325 GB Notification: Performance of sort global known variables: time 8.42e-07/0.7469, allocations: 0 / 0.9355 GB, free: 16.32 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002368/0.7472, allocations: 30.3 kB / 0.9356 GB, free: 16.31 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.0005918/0.7478, allocations: 0.7496 MB / 0.9363 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002475/0.748, allocations: 78.88 kB / 0.9364 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.748, allocations: 0 / 0.9364 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.7481, allocations: 38.62 kB / 0.9364 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.7485, allocations: 32.83 kB / 0.9364 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.7503, allocations: 1.758 MB / 0.9382 GB, free: 14.4 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.7506, allocations: 0.7089 MB / 0.9388 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.857e-05/0.7506, allocations: 10.67 kB / 0.9389 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.564e-05/0.7507, allocations: 37.77 kB / 0.9389 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of SimCode: time 2.01e-07/0.7507, allocations: 0 / 0.9389 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.7681, allocations: 3.166 MB / 0.942 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.882/7.651, allocations: 14.3 kB / 0.942 GB, free: 13.23 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 & /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)