Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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.001313/0.001313, 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.001522/0.001522, allocations: 190.5 kB / 16.64 MB, free: 6.594 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.442/1.442, allocations: 205.1 MB / 222.5 MB, free: 4.57 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.67/1.67, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.002768/0.002768, allocations: 67.72 kB / 0.6718 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2397, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03908/0.2789, allocations: 41.59 MB / 0.8242 GB, free: 3.531 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01434/0.2932, allocations: 10.31 MB / 0.8343 GB, free: 9.195 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002435/0.2958, allocations: 51.69 kB / 0.8344 GB, free: 9.145 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001932/0.2977, allocations: 0.6365 MB / 0.835 GB, free: 8.504 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.005417/0.3032, allocations: 1.867 MB / 0.8368 GB, free: 6.629 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003233/0.3064, allocations: 1.2 MB / 0.838 GB, free: 5.441 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0047/0.3111, allocations: 3.387 MB / 0.8413 GB, free: 2.043 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001651/0.3128, allocations: 1.056 MB / 0.8423 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003283/0.3161, allocations: 1.243 MB / 0.8435 GB, free: 15.73 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00185/0.318, allocations: 0.875 MB / 0.8444 GB, free: 14.85 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0002539/0.3183, allocations: 100 kB / 0.8445 GB, free: 14.75 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002314/0.3206, allocations: 0.8656 MB / 0.8453 GB, free: 13.88 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0003238/0.3209, allocations: 279 kB / 0.8456 GB, free: 13.61 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0008983/0.3218, allocations: 0.6299 MB / 0.8462 GB, free: 12.98 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.00302/0.3249, allocations: 1.92 MB / 0.8481 GB, free: 11.05 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3249, allocations: 0 / 0.8481 GB, free: 11.05 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.074e-06/0.3249, allocations: 4 kB / 0.8481 GB, free: 11.05 MB / 0.67 GB Notification: Performance of Transformations before backend: time 2.204e-05/0.3249, allocations: 0 / 0.8481 GB, free: 11.05 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002468/0.3274, allocations: 1.507 MB / 0.8496 GB, free: 9.488 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.3275, allocations: 8.031 kB / 0.8496 GB, free: 9.48 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/0.3276, allocations: 122.7 kB / 0.8497 GB, free: 9.352 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003613/0.328, allocations: 131.5 kB / 0.8498 GB, free: 9.223 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.3299, allocations: 1.088 MB / 0.8509 GB, free: 8.09 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.8e-05/0.3299, allocations: 61.98 kB / 0.8509 GB, free: 8.031 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.33, allocations: 75.89 kB / 0.851 GB, free: 7.957 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.3314, allocations: 0.7905 MB / 0.8518 GB, free: 7.129 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.3314, allocations: 0 / 0.8518 GB, free: 7.129 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.5e-05/0.3315, allocations: 32 kB / 0.8518 GB, free: 7.098 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.339e-05/0.3315, allocations: 20 kB / 0.8518 GB, free: 7.078 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3326, allocations: 0.5711 MB / 0.8524 GB, free: 6.508 MB / 0.67 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004263/0.3369, allocations: 3.544 MB / 0.8558 GB, free: 2.734 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005593/0.3375, allocations: 260.8 kB / 0.8561 GB, free: 2.473 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000322/0.3378, allocations: 172.8 kB / 0.8563 GB, free: 2.301 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005104/0.3383, allocations: 0.6649 MB / 0.8569 GB, free: 1.488 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.3384, allocations: 34.56 kB / 0.8569 GB, free: 1.445 MB / 0.67 GB Notification: Performance of pre-optimization done (n=31): time 2.414e-06/0.3384, allocations: 0 / 0.8569 GB, free: 1.445 MB / 0.67 GB Notification: Performance of matching and sorting (n=31): time 0.001222/0.3396, allocations: 0.51 MB / 0.8574 GB, free: 0.9297 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.3397, allocations: 63.39 kB / 0.8575 GB, free: 0.8555 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/0.3409, allocations: 0.941 MB / 0.8584 GB, free: 15.89 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 6.254e-05/0.341, allocations: 33.7 kB / 0.8584 GB, free: 15.86 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003954/0.3414, allocations: 499.5 kB / 0.8589 GB, free: 15.36 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.3415, allocations: 118.4 kB / 0.859 GB, free: 15.25 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3416, allocations: 110.1 kB / 0.8591 GB, free: 15.13 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3418, allocations: 337.9 kB / 0.8595 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003291/0.3421, allocations: 165 kB / 0.8596 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004711/0.3426, allocations: 350.8 kB / 0.86 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007813/0.3434, allocations: 0.5186 MB / 0.8605 GB, free: 13.62 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3434, allocations: 7.938 kB / 0.8605 GB, free: 13.62 MB / 0.6856 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001168/0.3446, allocations: 0.6096 MB / 0.8611 GB, free: 13 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3446, allocations: 10.81 kB / 0.8611 GB, free: 12.99 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.3446, allocations: 4 kB / 0.8611 GB, free: 12.99 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.3446, allocations: 8 kB / 0.8611 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000418/0.3451, allocations: 127.8 kB / 0.8612 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.3451, allocations: 11.98 kB / 0.8612 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000577/0.3457, allocations: 87.44 kB / 0.8613 GB, free: 12.76 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.812e-05/0.3457, allocations: 28 kB / 0.8613 GB, free: 12.73 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (65): * Single equations (assignments): 65 * 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.0003627/0.3461, allocations: 274.7 kB / 0.8616 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.3462, allocations: 102.8 kB / 0.8617 GB, free: 12.35 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000953/0.3472, allocations: 487.3 kB / 0.8622 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.3472, allocations: 4 kB / 0.8622 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.3472, allocations: 0 / 0.8622 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006914/0.3479, allocations: 452.6 kB / 0.8626 GB, free: 11.39 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.35, allocations: 1.366 MB / 0.8639 GB, free: 9.953 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3501, allocations: 0 / 0.8639 GB, free: 9.953 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003163/0.3504, allocations: 75.83 kB / 0.864 GB, free: 9.879 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/0.3504, allocations: 4.156 kB / 0.864 GB, free: 9.875 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.3504, allocations: 15.98 kB / 0.864 GB, free: 9.859 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.3504, allocations: 4 kB / 0.864 GB, free: 9.855 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3505, allocations: 0 / 0.864 GB, free: 9.855 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.3517, allocations: 0.759 MB / 0.8648 GB, free: 9.066 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.352, allocations: 231.7 kB / 0.865 GB, free: 8.82 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.3521, allocations: 12 kB / 0.865 GB, free: 8.809 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004679/0.3526, allocations: 32.02 kB / 0.865 GB, free: 8.777 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.24e-05/0.3527, allocations: 23.97 kB / 0.865 GB, free: 8.754 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.855e-05/0.3527, allocations: 19.98 kB / 0.8651 GB, free: 8.734 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0008029/0.3535, allocations: 0.6548 MB / 0.8657 GB, free: 8.07 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3535, allocations: 0 / 0.8657 GB, free: 8.07 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0009489/0.3545, allocations: 339.4 kB / 0.866 GB, free: 7.738 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002154/0.3566, allocations: 1.606 MB / 0.8676 GB, free: 6.098 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0008556/0.3575, allocations: 428.2 kB / 0.868 GB, free: 5.68 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3575, allocations: 0 / 0.868 GB, free: 5.68 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.000349/0.3579, allocations: 183.8 kB / 0.8682 GB, free: 5.5 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/0.3605, allocations: 0.6063 MB / 0.8688 GB, free: 4.906 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009029/0.3695, allocations: 6.783 MB / 0.8754 GB, free: 13.82 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005571/0.3701, allocations: 1.032 MB / 0.8764 GB, free: 12.76 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0007404/0.3709, allocations: 199.6 kB / 0.8766 GB, free: 12.56 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004506/0.3713, allocations: 375.3 kB / 0.877 GB, free: 12.2 MB / 0.7012 GB Notification: Performance of SimCode: time 8.61e-07/0.3713, allocations: 0 / 0.877 GB, free: 12.2 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05614/0.4275, allocations: 29.54 MB / 0.9058 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.377/9.805, allocations: 14.84 kB / 0.9058 GB, free: 15.05 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)