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: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 101.6 kB / 16.27 MB, free: 6.418 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.001238/0.001238, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.475/1.475, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.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.841/1.841, allocations: 292.3 MB / 0.5495 GB, free: 17.43 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.001681/0.001681, allocations: 71.84 kB / 0.6722 GB, free: 6.539 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2867, allocations: 114.5 MB / 0.784 GB, free: 3.875 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.7976/1.084, allocations: 149 MB / 0.9295 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002594/1.087, allocations: 1.141 MB / 0.9306 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/1.087, allocations: 1.375 kB / 0.9306 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004831/1.088, allocations: 52.05 kB / 0.9307 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001277/1.089, allocations: 303.7 kB / 0.931 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006299/1.09, allocations: 166.8 kB / 0.9311 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006209/1.09, allocations: 216 kB / 0.9313 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/1.091, allocations: 69.98 kB / 0.9314 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/1.091, allocations: 51.8 kB / 0.9315 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/1.091, allocations: 55.75 kB / 0.9315 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/1.091, allocations: 16 kB / 0.9315 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008585/1.092, allocations: 371.2 kB / 0.9319 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.998e-05/1.092, allocations: 31.86 kB / 0.9319 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.675e-05/1.092, allocations: 59.67 kB / 0.932 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006219/1.093, allocations: 287.2 kB / 0.9322 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/1.093, allocations: 3.984 kB / 0.9322 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/1.093, allocations: 0 / 0.9322 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.562e-06/1.093, allocations: 4 kB / 0.9323 GB, free: 2.969 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.0009328/1.094, allocations: 465.8 kB / 0.9327 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/1.094, allocations: 12.03 kB / 0.9327 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004125/1.094, allocations: 38.69 kB / 0.9327 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000317/1.094, allocations: 215.8 kB / 0.933 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/1.094, allocations: 8 kB / 0.933 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/1.095, allocations: 8 kB / 0.933 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/1.095, allocations: 117.6 kB / 0.9331 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/1.095, allocations: 0 / 0.9331 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/1.095, allocations: 4 kB / 0.9331 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/1.095, allocations: 4 kB / 0.9331 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003739/1.095, allocations: 91.92 kB / 0.9332 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009377/1.096, allocations: 460.1 kB / 0.9336 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/1.097, allocations: 94.47 kB / 0.9337 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/1.097, allocations: 32.95 kB / 0.9337 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/1.097, allocations: 4 kB / 0.9337 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/1.097, allocations: 34.56 kB / 0.9338 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/1.097, allocations: 0 / 0.9338 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0006247/1.097, allocations: 145.4 kB / 0.9339 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/1.098, allocations: 55.41 kB / 0.934 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002362/1.098, allocations: 180.1 kB / 0.9341 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/1.098, allocations: 33.64 kB / 0.9342 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.437e-05/1.098, allocations: 116 kB / 0.9343 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.765e-05/1.098, allocations: 23.7 kB / 0.9343 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.335e-05/1.098, allocations: 23.2 kB / 0.9343 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001729/1.098, allocations: 326.8 kB / 0.9346 GB, free: 328 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/1.098, allocations: 27.98 kB / 0.9347 GB, free: 300 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/1.099, allocations: 31.97 kB / 0.9347 GB, free: 268 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/1.099, allocations: 76.83 kB / 0.9348 GB, free: 188 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/1.099, allocations: 3.984 kB / 0.9348 GB, free: 184 kB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003766/1.099, allocations: 117.4 kB / 0.9349 GB, free: 60 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/1.099, allocations: 8 kB / 0.9349 GB, free: 52 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/1.099, allocations: 0 / 0.9349 GB, free: 52 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/1.099, allocations: 0 / 0.9349 GB, free: 52 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/1.099, allocations: 15.98 kB / 0.9349 GB, free: 36 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/1.1, allocations: 8.5 kB / 0.9349 GB, free: 28 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/1.1, allocations: 19.83 kB / 0.9349 GB, free: 8 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/1.1, allocations: 0 / 0.9349 GB, free: 8 kB / 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: 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.0001576/1.1, allocations: 121.8 kB / 0.935 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.375e-05/1.1, allocations: 11.91 kB / 0.9351 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004851/1.1, allocations: 133.6 kB / 0.9352 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/1.1, allocations: 4.812 kB / 0.9352 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/1.1, allocations: 0 / 0.9352 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/1.1, allocations: 4 kB / 0.9352 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003611/1.101, allocations: 221.5 kB / 0.9354 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/1.101, allocations: 0 / 0.9354 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/1.101, allocations: 18.36 kB / 0.9354 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/1.101, allocations: 0 / 0.9354 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/1.101, allocations: 0 / 0.9354 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/1.101, allocations: 4 kB / 0.9354 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/1.101, allocations: 0 / 0.9354 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004391/1.101, allocations: 215.2 kB / 0.9356 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.611e-05/1.102, allocations: 94.64 kB / 0.9357 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/1.102, allocations: 4 kB / 0.9357 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/1.102, allocations: 3.984 kB / 0.9357 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-05/1.102, allocations: 4 kB / 0.9357 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/1.102, allocations: 11.94 kB / 0.9357 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001737/1.102, allocations: 136.7 kB / 0.9359 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/1.102, allocations: 0 / 0.9359 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004471/1.103, allocations: 27.91 kB / 0.9359 GB, free: 14.93 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.0002312/1.103, allocations: 107.2 kB / 0.936 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004253/1.103, allocations: 83.88 kB / 0.9361 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.103, allocations: 0 / 0.9361 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001746/1.103, allocations: 42.25 kB / 0.9361 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007048/1.104, allocations: 29.69 kB / 0.9362 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008547/1.105, allocations: 287.1 kB / 0.9364 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/1.105, allocations: 0.708 MB / 0.9371 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.543e-05/1.106, allocations: 11.44 kB / 0.9371 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of SimCode: time 1.523e-06/1.106, allocations: 0 / 0.9371 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of Templates: time 0.005062/1.111, allocations: 1.642 MB / 0.9387 GB, free: 12 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (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 & ./Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)