Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IDEAS_IDEAS_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.001027/0.001027, 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.001099/0.001099, allocations: 195.5 kB / 16.14 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7154/0.7154, allocations: 132.2 MB / 422.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.94 kB / 0.5012 GB, free: 9.09 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1391, allocations: 80.2 MB / 0.5795 GB, free: 9.113 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.268/0.4071, allocations: 41.33 MB / 0.6199 GB, free: 35.1 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01088/0.418, allocations: 10.45 MB / 0.6301 GB, free: 28.73 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.4195, allocations: 52 kB / 0.6301 GB, free: 28.71 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.4208, allocations: 0.5208 MB / 0.6306 GB, free: 28.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003351/0.4242, allocations: 1.747 MB / 0.6323 GB, free: 27.38 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002161/0.4264, allocations: 1.069 MB / 0.6334 GB, free: 26.77 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003356/0.4297, allocations: 4.52 MB / 0.6378 GB, free: 25.1 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009882/0.4307, allocations: 0.8758 MB / 0.6386 GB, free: 24.73 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.4323, allocations: 1.039 MB / 0.6397 GB, free: 24.29 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008485/0.4331, allocations: 0.9088 MB / 0.6405 GB, free: 23.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.4333, allocations: 48.72 kB / 0.6406 GB, free: 23.89 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.4348, allocations: 0.7724 MB / 0.6413 GB, free: 23.59 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002124/0.435, allocations: 235.8 kB / 0.6416 GB, free: 23.47 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000504/0.4355, allocations: 0.5715 MB / 0.6421 GB, free: 23.15 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00165/0.4372, allocations: 1.879 MB / 0.644 GB, free: 22.45 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.4372, allocations: 0 / 0.644 GB, free: 22.45 MB / 0.4981 GB Notification: Performance of FrontEnd: time 6.82e-07/0.4372, allocations: 4 kB / 0.644 GB, free: 22.45 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.271e-05/0.4372, allocations: 0 / 0.644 GB, free: 22.45 MB / 0.4981 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.00194/0.4392, allocations: 1.518 MB / 0.6454 GB, free: 21.41 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.4392, allocations: 7.875 kB / 0.6455 GB, free: 21.41 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.4393, allocations: 115.6 kB / 0.6456 GB, free: 21.33 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003099/0.4396, allocations: 142.2 kB / 0.6457 GB, free: 21.26 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.4409, allocations: 1.074 MB / 0.6467 GB, free: 20.61 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.4409, allocations: 54.31 kB / 0.6468 GB, free: 20.58 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.42e-05/0.441, allocations: 73.36 kB / 0.6469 GB, free: 20.55 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.4422, allocations: 0.7956 MB / 0.6476 GB, free: 20.17 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.4422, allocations: 0 / 0.6476 GB, free: 20.17 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.95e-05/0.4423, allocations: 31.16 kB / 0.6477 GB, free: 20.15 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.4423, allocations: 17.97 kB / 0.6477 GB, free: 20.15 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009775/0.4433, allocations: 0.5731 MB / 0.6483 GB, free: 19.95 MB / 0.4981 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.003072/0.4464, allocations: 3.542 MB / 0.6517 GB, free: 17.36 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005421/0.4469, allocations: 264.7 kB / 0.652 GB, free: 17.25 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.4473, allocations: 178.9 kB / 0.6521 GB, free: 17.19 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003398/0.4476, allocations: 0.6597 MB / 0.6528 GB, free: 16.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/0.4476, allocations: 36.84 kB / 0.6528 GB, free: 16.39 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=31): time 1.453e-06/0.4476, allocations: 0 / 0.6528 GB, free: 16.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31): time 0.001138/0.4488, allocations: 0.5174 MB / 0.6533 GB, free: 16.19 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.304e-05/0.4488, allocations: 54.12 kB / 0.6534 GB, free: 16.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.4499, allocations: 0.9268 MB / 0.6543 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.45, allocations: 37.02 kB / 0.6543 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003195/0.4503, allocations: 499.7 kB / 0.6548 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.133e-05/0.4504, allocations: 111.6 kB / 0.6549 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.4505, allocations: 115.1 kB / 0.655 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.147e-05/0.4506, allocations: 333.5 kB / 0.6553 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/0.451, allocations: 162 kB / 0.6555 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004523/0.4514, allocations: 348.6 kB / 0.6558 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007774/0.4522, allocations: 0.5188 MB / 0.6563 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.4522, allocations: 1.75 kB / 0.6563 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001144/0.4534, allocations: 0.6172 MB / 0.6569 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.4534, allocations: 7.125 kB / 0.6569 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4534, allocations: 6.203 kB / 0.6569 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.4535, allocations: 8 kB / 0.6569 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004415/0.4539, allocations: 127 kB / 0.6571 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.4539, allocations: 9.578 kB / 0.6571 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007029/0.4546, allocations: 117.2 kB / 0.6572 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.136e-05/0.4547, allocations: 25.86 kB / 0.6572 GB, free: 13.82 MB / 0.4981 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.0003648/0.4551, allocations: 278.3 kB / 0.6575 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.4553, allocations: 99.16 kB / 0.6576 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.4563, allocations: 485 kB / 0.658 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.4564, allocations: 8.188 kB / 0.658 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4564, allocations: 5.828 kB / 0.658 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007692/0.4571, allocations: 457 kB / 0.6585 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.4594, allocations: 1.352 MB / 0.6598 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.4594, allocations: 4.875 kB / 0.6598 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.4597, allocations: 82.27 kB / 0.6599 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.4598, allocations: 2.156 kB / 0.6599 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.4598, allocations: 10.17 kB / 0.6599 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.4598, allocations: 3.219 kB / 0.6599 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4598, allocations: 1.812 kB / 0.6599 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.461, allocations: 0.7657 MB / 0.6606 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/0.4614, allocations: 225.3 kB / 0.6609 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.4615, allocations: 15.58 kB / 0.6609 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.4621, allocations: 51.27 kB / 0.6609 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.926e-05/0.4622, allocations: 29.67 kB / 0.661 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.553e-05/0.4623, allocations: 20.22 kB / 0.661 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008575/0.4631, allocations: 0.648 MB / 0.6616 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.6e-07/0.4631, allocations: 0 / 0.6616 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009646/0.4641, allocations: 335.2 kB / 0.6619 GB, free: 11.38 MB / 0.4981 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.002002/0.4661, allocations: 1.587 MB / 0.6635 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008761/0.467, allocations: 412.6 kB / 0.6639 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.467, allocations: 9.281 kB / 0.6639 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003807/0.4674, allocations: 184.4 kB / 0.6641 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002771/0.4702, allocations: 0.5912 MB / 0.6646 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01089/0.4811, allocations: 7.47 MB / 0.6719 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/0.4816, allocations: 1.043 MB / 0.6729 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0009252/0.4825, allocations: 199.8 kB / 0.6731 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004/0.4829, allocations: 374.1 kB / 0.6735 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of SimCode: time 7.61e-07/0.4829, allocations: 0 / 0.6735 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04567/0.5286, allocations: 28.33 MB / 0.7012 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/0.5288, allocations: 236.3 kB / 0.7014 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/2.934, allocations: 0 / 0.7014 GB, free: 5.93 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)