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.00116/0.00116, allocations: 108 kB / 15.6 MB, free: 132 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.001198/0.001198, allocations: 197.7 kB / 16.53 MB, free: 6.391 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8029/0.8029, allocations: 132.2 MB / 422.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001318, allocations: 68.55 kB / 0.5019 GB, free: 8.637 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1404, allocations: 80.2 MB / 0.5802 GB, free: 8.652 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.2783/0.4188, allocations: 41.55 MB / 0.6208 GB, free: 34.73 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01157/0.4304, allocations: 10.38 MB / 0.6309 GB, free: 28.27 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001785/0.4322, allocations: 56.44 kB / 0.631 GB, free: 28.25 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.4338, allocations: 0.6475 MB / 0.6316 GB, free: 27.85 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004258/0.4381, allocations: 1.872 MB / 0.6334 GB, free: 26.74 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002472/0.4406, allocations: 1.175 MB / 0.6346 GB, free: 26.09 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003349/0.4439, allocations: 3.385 MB / 0.6379 GB, free: 24.47 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.4451, allocations: 1.06 MB / 0.6389 GB, free: 23.98 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00238/0.4475, allocations: 1.238 MB / 0.6401 GB, free: 23.39 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000943/0.4485, allocations: 0.8763 MB / 0.641 GB, free: 22.98 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001377/0.4486, allocations: 100.1 kB / 0.6411 GB, free: 22.98 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001659/0.4503, allocations: 0.8589 MB / 0.6419 GB, free: 22.64 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002124/0.4505, allocations: 278.3 kB / 0.6422 GB, free: 22.47 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005415/0.4511, allocations: 0.6297 MB / 0.6428 GB, free: 22.09 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001946/0.453, allocations: 1.914 MB / 0.6447 GB, free: 21.37 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.453, allocations: 4 kB / 0.6447 GB, free: 21.36 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.292e-06/0.453, allocations: 6.562 kB / 0.6447 GB, free: 21.36 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.387e-05/0.453, allocations: 0 / 0.6447 GB, free: 21.36 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.002007/0.4551, allocations: 1.511 MB / 0.6461 GB, free: 20.34 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.4551, allocations: 14.44 kB / 0.6462 GB, free: 20.34 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.4552, allocations: 119 kB / 0.6463 GB, free: 20.25 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003535/0.4556, allocations: 129.5 kB / 0.6464 GB, free: 20.19 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001303/0.4569, allocations: 1.047 MB / 0.6474 GB, free: 19.54 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.036e-05/0.457, allocations: 57.75 kB / 0.6475 GB, free: 19.52 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.965e-05/0.457, allocations: 66.38 kB / 0.6475 GB, free: 19.5 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.4582, allocations: 0.7946 MB / 0.6483 GB, free: 19.12 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.4583, allocations: 0 / 0.6483 GB, free: 19.12 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.039e-05/0.4583, allocations: 31.47 kB / 0.6483 GB, free: 19.1 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.967e-05/0.4584, allocations: 23.03 kB / 0.6484 GB, free: 19.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.4594, allocations: 0.5719 MB / 0.6489 GB, free: 18.89 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.003302/0.4627, allocations: 3.587 MB / 0.6524 GB, free: 16.28 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005558/0.4633, allocations: 256.6 kB / 0.6527 GB, free: 16.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003393/0.4636, allocations: 175.9 kB / 0.6528 GB, free: 16.12 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004285/0.464, allocations: 0.6599 MB / 0.6535 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.4641, allocations: 36.41 kB / 0.6535 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=31): time 2.044e-06/0.4641, allocations: 0.9375 kB / 0.6535 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31): time 0.001326/0.4654, allocations: 0.5123 MB / 0.654 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.4655, allocations: 58.22 kB / 0.6541 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.4666, allocations: 0.9439 MB / 0.655 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.4667, allocations: 37.67 kB / 0.655 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003231/0.467, allocations: 0.4913 MB / 0.6555 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.443e-05/0.4671, allocations: 113.8 kB / 0.6556 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.4673, allocations: 115.1 kB / 0.6557 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.851e-05/0.4674, allocations: 328.8 kB / 0.656 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003794/0.4677, allocations: 168.3 kB / 0.6562 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.4682, allocations: 348.1 kB / 0.6565 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008141/0.469, allocations: 0.508 MB / 0.657 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.4691, allocations: 2.656 kB / 0.657 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001283/0.4703, allocations: 0.63 MB / 0.6577 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.4704, allocations: 7.031 kB / 0.6577 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.4704, allocations: 4.969 kB / 0.6577 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/0.4704, allocations: 8.969 kB / 0.6577 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004718/0.4709, allocations: 121.1 kB / 0.6578 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/0.4709, allocations: 14.94 kB / 0.6578 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006345/0.4716, allocations: 90.5 kB / 0.6579 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.037e-05/0.4716, allocations: 29.22 kB / 0.6579 GB, free: 12.74 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.0003421/0.472, allocations: 273 kB / 0.6582 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.4722, allocations: 104 kB / 0.6583 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.4732, allocations: 485.3 kB / 0.6587 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.4732, allocations: 4.656 kB / 0.6587 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4732, allocations: 0 / 0.6587 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007475/0.474, allocations: 453.5 kB / 0.6592 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.4761, allocations: 1.36 MB / 0.6605 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4761, allocations: 5.219 kB / 0.6605 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003473/0.4765, allocations: 82.55 kB / 0.6606 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.4765, allocations: 2.656 kB / 0.6606 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.4765, allocations: 9.781 kB / 0.6606 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.4765, allocations: 7.312 kB / 0.6606 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4765, allocations: 1.766 kB / 0.6606 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.4778, allocations: 0.7676 MB / 0.6614 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000318/0.4781, allocations: 225.2 kB / 0.6616 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.4783, allocations: 8.219 kB / 0.6616 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.4788, allocations: 43.02 kB / 0.6616 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.4789, allocations: 29.81 kB / 0.6617 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.479, allocations: 16.02 kB / 0.6617 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008492/0.4798, allocations: 0.6621 MB / 0.6623 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.4798, allocations: 0 / 0.6623 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009851/0.4808, allocations: 343.1 kB / 0.6626 GB, free: 10.3 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.002003/0.4828, allocations: 1.584 MB / 0.6642 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001004/0.4838, allocations: 448.5 kB / 0.6646 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.4839, allocations: 1.375 kB / 0.6646 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003763/0.4842, allocations: 185.5 kB / 0.6648 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002833/0.4871, allocations: 0.6053 MB / 0.6654 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00899/0.4961, allocations: 7.219 MB / 0.6724 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.4966, allocations: 1.045 MB / 0.6735 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008938/0.4975, allocations: 201.3 kB / 0.6736 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004043/0.4979, allocations: 372.5 kB / 0.674 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of SimCode: time 6.82e-07/0.4979, allocations: 0 / 0.674 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5064/1.004, allocations: 29.54 MB / 0.7028 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.304/10.31, allocations: 8.031 kB / 0.7029 GB, free: 4.676 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)