Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IDEAS_dev_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.0011/0.0011, allocations: 108 kB / 15.61 MB, free: 152 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.001125/0.001126, allocations: 195.2 kB / 16.53 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9082/0.9082, allocations: 135.1 MB / 425.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 68.58 kB / 0.5054 GB, free: 5.254 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1408, allocations: 80.92 MB / 0.5845 GB, free: 4.484 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.2743/0.4152, allocations: 41.56 MB / 0.6251 GB, free: 31.09 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01111/0.4263, allocations: 10.38 MB / 0.6352 GB, free: 23.65 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001741/0.4281, allocations: 54.38 kB / 0.6352 GB, free: 23.63 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.4297, allocations: 0.6409 MB / 0.6359 GB, free: 23.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004522/0.4343, allocations: 1.876 MB / 0.6377 GB, free: 22.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002606/0.4369, allocations: 1.17 MB / 0.6388 GB, free: 21.48 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003178/0.4401, allocations: 3.387 MB / 0.6422 GB, free: 19.84 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001065/0.4411, allocations: 1.057 MB / 0.6432 GB, free: 19.36 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002084/0.4432, allocations: 1.244 MB / 0.6444 GB, free: 18.77 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008435/0.4441, allocations: 0.8777 MB / 0.6453 GB, free: 18.36 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.4442, allocations: 100.2 kB / 0.6454 GB, free: 18.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001632/0.4459, allocations: 0.8579 MB / 0.6462 GB, free: 18.02 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.4461, allocations: 274.2 kB / 0.6465 GB, free: 17.85 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005017/0.4466, allocations: 0.6343 MB / 0.6471 GB, free: 17.46 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001889/0.4485, allocations: 1.913 MB / 0.6489 GB, free: 16.75 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.4485, allocations: 0 / 0.6489 GB, free: 16.75 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.012e-06/0.4485, allocations: 3.938 kB / 0.6489 GB, free: 16.74 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.904e-05/0.4485, allocations: 0 / 0.6489 GB, free: 16.74 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.00189/0.4504, allocations: 1.517 MB / 0.6504 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.4505, allocations: 8.406 kB / 0.6504 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.4506, allocations: 112.6 kB / 0.6505 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003081/0.4509, allocations: 135.9 kB / 0.6507 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.4521, allocations: 1.044 MB / 0.6517 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/0.4522, allocations: 63 kB / 0.6517 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.547e-05/0.4523, allocations: 71.06 kB / 0.6518 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.4534, allocations: 0.7913 MB / 0.6526 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.4534, allocations: 1.312 kB / 0.6526 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.083e-05/0.4535, allocations: 27.88 kB / 0.6526 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.174e-05/0.4535, allocations: 21.53 kB / 0.6526 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.4546, allocations: 0.5719 MB / 0.6532 GB, free: 14.27 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.003145/0.4577, allocations: 3.57 MB / 0.6567 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005294/0.4583, allocations: 257 kB / 0.6569 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003292/0.4586, allocations: 183.2 kB / 0.6571 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003384/0.4589, allocations: 0.6626 MB / 0.6577 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.79e-05/0.459, allocations: 37.94 kB / 0.6578 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=31): time 2.525e-06/0.459, allocations: 3.984 kB / 0.6578 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31): time 0.001183/0.4602, allocations: 0.5165 MB / 0.6583 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.196e-05/0.4602, allocations: 58.75 kB / 0.6583 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.4613, allocations: 0.952 MB / 0.6593 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.4614, allocations: 33.48 kB / 0.6593 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.4617, allocations: 0.4887 MB / 0.6598 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.141e-05/0.4618, allocations: 111.3 kB / 0.6599 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.4619, allocations: 114.4 kB / 0.66 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.222e-05/0.462, allocations: 330.2 kB / 0.6603 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003579/0.4624, allocations: 169.4 kB / 0.6605 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004456/0.4628, allocations: 344.2 kB / 0.6608 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007829/0.4636, allocations: 0.508 MB / 0.6613 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.4636, allocations: 2.719 kB / 0.6613 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001115/0.4647, allocations: 0.6259 MB / 0.6619 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.4648, allocations: 6.656 kB / 0.6619 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.4648, allocations: 5.719 kB / 0.6619 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.4648, allocations: 7.891 kB / 0.6619 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004411/0.4653, allocations: 123.2 kB / 0.6621 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.4653, allocations: 12.81 kB / 0.6621 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006038/0.4659, allocations: 95.66 kB / 0.6622 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.586e-05/0.466, allocations: 30.23 kB / 0.6622 GB, free: 8.125 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.0003068/0.4663, allocations: 275.2 kB / 0.6624 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.4664, allocations: 100.1 kB / 0.6625 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009766/0.4674, allocations: 489.6 kB / 0.663 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.4674, allocations: 3.625 kB / 0.663 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4674, allocations: 2.141 kB / 0.663 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006809/0.4681, allocations: 452.1 kB / 0.6634 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/0.47, allocations: 1.359 MB / 0.6648 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4701, allocations: 5.719 kB / 0.6648 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000333/0.4704, allocations: 82.14 kB / 0.6649 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.4704, allocations: 2.719 kB / 0.6649 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.4705, allocations: 10.12 kB / 0.6649 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.4705, allocations: 3.438 kB / 0.6649 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4705, allocations: 1.406 kB / 0.6649 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.4717, allocations: 0.7607 MB / 0.6656 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002672/0.472, allocations: 229.1 kB / 0.6658 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.4721, allocations: 16.42 kB / 0.6659 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005044/0.4726, allocations: 31.69 kB / 0.6659 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.931e-05/0.4727, allocations: 24.31 kB / 0.6659 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.4727, allocations: 20.84 kB / 0.6659 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008027/0.4735, allocations: 0.6585 MB / 0.6666 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4735, allocations: 0 / 0.6666 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009471/0.4745, allocations: 343.1 kB / 0.6669 GB, free: 5.691 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.002121/0.4766, allocations: 1.589 MB / 0.6684 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001062/0.4777, allocations: 440.9 kB / 0.6689 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.4777, allocations: 2.219 kB / 0.6689 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003888/0.4781, allocations: 192.5 kB / 0.6691 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002697/0.4808, allocations: 0.6076 MB / 0.6696 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009403/0.4902, allocations: 7.224 MB / 0.6767 GB, free: 32 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000695/0.491, allocations: 1.037 MB / 0.6777 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001019/0.492, allocations: 194.7 kB / 0.6779 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005195/0.4925, allocations: 372.7 kB / 0.6783 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of SimCode: time 9.62e-07/0.4925, allocations: 0 / 0.6783 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09073/0.5833, allocations: 29.55 MB / 0.7071 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.341/8.924, allocations: 15.92 kB / 0.7071 GB, free: 14.73 MB / 0.5294 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)