Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.343/1.343, allocations: 251.5 MB / 266.7 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000948/0.000948, allocations: 178.3 kB / 325.8 MB, free: 2.699 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 205 MB / 0.576 GB, free: 20.98 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006731/0.0006731, allocations: 93.28 kB / 0.6797 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002832, allocations: 14.69 kB / 0.7932 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1436, allocations: 105.4 MB / 0.8962 GB, free: 68.11 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.02384/0.1674, allocations: 41.03 MB / 0.9363 GB, free: 26.92 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.009552/0.177, allocations: 10.33 MB / 0.9464 GB, free: 16.57 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001221/0.1783, allocations: 47.69 kB / 0.9464 GB, free: 16.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001175/0.1795, allocations: 0.5283 MB / 0.9469 GB, free: 15.99 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.003335/0.1828, allocations: 1.733 MB / 0.9486 GB, free: 14.25 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.00197/0.1848, allocations: 1.053 MB / 0.9496 GB, free: 13.21 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.002755/0.1876, allocations: 4.493 MB / 0.954 GB, free: 8.707 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007787/0.1883, allocations: 0.8361 MB / 0.9548 GB, free: 7.848 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001162/0.1895, allocations: 1.038 MB / 0.9559 GB, free: 6.805 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006578/0.1902, allocations: 0.8631 MB / 0.9567 GB, free: 5.938 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.097e-05/0.1903, allocations: 36 kB / 0.9567 GB, free: 5.902 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.1916, allocations: 0.7676 MB / 0.9575 GB, free: 5.133 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1917, allocations: 211 kB / 0.9577 GB, free: 4.926 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0003452/0.1921, allocations: 0.5517 MB / 0.9582 GB, free: 4.371 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001278/0.1934, allocations: 1.811 MB / 0.96 GB, free: 2.555 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1934, allocations: 0 / 0.96 GB, free: 2.555 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1934, allocations: 3.938 kB / 0.96 GB, free: 2.551 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.198e-05/0.1934, allocations: 4 kB / 0.96 GB, free: 2.547 MB / 0.6042 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.001527/0.1949, allocations: 1.293 MB / 0.9613 GB, free: 1.199 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.195, allocations: 8.031 kB / 0.9613 GB, free: 1.191 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.456e-05/0.1951, allocations: 118.7 kB / 0.9614 GB, free: 1.066 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000265/0.1953, allocations: 135.4 kB / 0.9615 GB, free: 0.9336 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.1965, allocations: 1.064 MB / 0.9626 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.1965, allocations: 50 kB / 0.9626 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.544e-05/0.1966, allocations: 76 kB / 0.9627 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.1978, allocations: 0.7944 MB / 0.9634 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.1978, allocations: 3.938 kB / 0.9635 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.461e-05/0.1979, allocations: 28 kB / 0.9635 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.376e-05/0.1979, allocations: 16 kB / 0.9635 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.1989, allocations: 0.5984 MB / 0.9641 GB, free: 14.23 MB / 0.6198 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.003217/0.2021, allocations: 3.536 MB / 0.9675 GB, free: 10.46 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004973/0.2026, allocations: 268.1 kB / 0.9678 GB, free: 10.19 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003367/0.203, allocations: 196.7 kB / 0.968 GB, free: 9.996 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003997/0.2034, allocations: 0.6532 MB / 0.9686 GB, free: 9.195 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.2034, allocations: 38.55 kB / 0.9686 GB, free: 9.148 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=31): time 2.034e-06/0.2034, allocations: 0 / 0.9686 GB, free: 9.148 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31): time 0.001037/0.2045, allocations: 0.545 MB / 0.9692 GB, free: 8.598 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.2045, allocations: 55.41 kB / 0.9692 GB, free: 8.531 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009476/0.2055, allocations: 0.9215 MB / 0.9701 GB, free: 7.59 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.2055, allocations: 33.7 kB / 0.9702 GB, free: 7.551 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003249/0.2059, allocations: 499.6 kB / 0.9706 GB, free: 7.051 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.13e-05/0.2059, allocations: 118.4 kB / 0.9708 GB, free: 6.934 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.595e-05/0.206, allocations: 49.69 kB / 0.9708 GB, free: 6.879 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.394e-05/0.2061, allocations: 329.9 kB / 0.9711 GB, free: 6.551 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.2064, allocations: 177 kB / 0.9713 GB, free: 6.379 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.2069, allocations: 363 kB / 0.9716 GB, free: 5.953 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007315/0.2076, allocations: 0.5303 MB / 0.9721 GB, free: 5.352 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2076, allocations: 4 kB / 0.9722 GB, free: 5.348 MB / 0.6198 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009859/0.2086, allocations: 0.629 MB / 0.9728 GB, free: 4.711 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2086, allocations: 15.92 kB / 0.9728 GB, free: 4.695 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.2087, allocations: 4 kB / 0.9728 GB, free: 4.691 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.2087, allocations: 8 kB / 0.9728 GB, free: 4.684 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003972/0.2091, allocations: 132.2 kB / 0.9729 GB, free: 4.555 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.2091, allocations: 15.92 kB / 0.9729 GB, free: 4.539 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005676/0.2097, allocations: 127 kB / 0.9731 GB, free: 4.414 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.2097, allocations: 27.94 kB / 0.9731 GB, free: 4.387 MB / 0.6198 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.0002781/0.21, allocations: 273.9 kB / 0.9733 GB, free: 4.109 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.2101, allocations: 94.94 kB / 0.9734 GB, free: 4.016 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008596/0.211, allocations: 0.504 MB / 0.9739 GB, free: 3.504 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.211, allocations: 11.98 kB / 0.9739 GB, free: 3.492 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.211, allocations: 0 / 0.9739 GB, free: 3.492 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006427/0.2117, allocations: 480.8 kB / 0.9744 GB, free: 2.992 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.2134, allocations: 1.37 MB / 0.9757 GB, free: 1.551 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2134, allocations: 0 / 0.9757 GB, free: 1.551 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.2137, allocations: 79.88 kB / 0.9758 GB, free: 1.473 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.2137, allocations: 4 kB / 0.9758 GB, free: 1.469 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.2137, allocations: 8 kB / 0.9758 GB, free: 1.461 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.2137, allocations: 7.938 kB / 0.9758 GB, free: 1.453 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2137, allocations: 0 / 0.9758 GB, free: 1.453 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.2149, allocations: 0.7929 MB / 0.9766 GB, free: 0.6289 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.2151, allocations: 227.7 kB / 0.9768 GB, free: 396 kB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.88e-05/0.2152, allocations: 8 kB / 0.9768 GB, free: 388 kB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.2157, allocations: 58.06 kB / 0.9769 GB, free: 332 kB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.561e-05/0.2158, allocations: 23.97 kB / 0.9769 GB, free: 308 kB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.2158, allocations: 19.98 kB / 0.9769 GB, free: 288 kB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0006668/0.2165, allocations: 0.6431 MB / 0.9776 GB, free: 15.62 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2165, allocations: 4 kB / 0.9776 GB, free: 15.62 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000714/0.2172, allocations: 331.4 kB / 0.9779 GB, free: 15.3 MB / 0.6355 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.001795/0.219, allocations: 1.615 MB / 0.9794 GB, free: 13.65 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0007392/0.2198, allocations: 428.8 kB / 0.9799 GB, free: 13.23 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2198, allocations: 448 / 0.9799 GB, free: 13.23 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003331/0.2201, allocations: 203.7 kB / 0.9801 GB, free: 13.03 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.2226, allocations: 0.6022 MB / 0.9806 GB, free: 12.44 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009785/0.2324, allocations: 7.507 MB / 0.988 GB, free: 4.539 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.2329, allocations: 1.028 MB / 0.989 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.000686/0.2336, allocations: 202.5 kB / 0.9892 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003857/0.234, allocations: 367.3 kB / 0.9895 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of SimCode: time 4.31e-07/0.234, allocations: 0 / 0.9895 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9674/1.201, allocations: 28.21 MB / 1.017 GB, free: 7.031 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002331/1.202, allocations: 278.8 kB / 1.017 GB, free: 6.664 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.145/4.347, allocations: 0 / 1.017 GB, free: 6.664 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)