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.001144/0.001144, 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.001199/0.001199, allocations: 193.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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9111/0.9111, allocations: 135.1 MB / 425.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 64.47 kB / 0.5054 GB, free: 5.215 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1441, allocations: 80.92 MB / 0.5845 GB, free: 4.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.286/0.4302, allocations: 41.57 MB / 0.6251 GB, free: 31.05 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01057/0.4409, allocations: 10.37 MB / 0.6352 GB, free: 23.62 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001552/0.4424, allocations: 60.16 kB / 0.6352 GB, free: 23.6 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.4438, allocations: 0.6421 MB / 0.6359 GB, free: 23.2 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003471/0.4473, allocations: 1.869 MB / 0.6377 GB, free: 22.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002214/0.4495, allocations: 1.178 MB / 0.6388 GB, free: 21.45 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002674/0.4522, allocations: 3.383 MB / 0.6422 GB, free: 19.81 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009608/0.4532, allocations: 1.06 MB / 0.6432 GB, free: 19.32 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001891/0.4551, allocations: 1.239 MB / 0.6444 GB, free: 18.73 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000845/0.4559, allocations: 0.8765 MB / 0.6453 GB, free: 18.33 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.4561, allocations: 102.5 kB / 0.6454 GB, free: 18.33 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001582/0.4577, allocations: 0.855 MB / 0.6462 GB, free: 17.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001966/0.4579, allocations: 278.3 kB / 0.6465 GB, free: 17.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004758/0.4583, allocations: 0.6337 MB / 0.6471 GB, free: 17.43 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0019/0.4603, allocations: 1.915 MB / 0.6489 GB, free: 16.71 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4603, allocations: 2.625 kB / 0.6489 GB, free: 16.71 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4603, allocations: 0 / 0.6489 GB, free: 16.71 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.532e-05/0.4603, allocations: 4 kB / 0.6489 GB, free: 16.71 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.002011/0.4623, allocations: 1.508 MB / 0.6504 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.4624, allocations: 11.81 kB / 0.6504 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.4625, allocations: 112.8 kB / 0.6505 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000317/0.4628, allocations: 139.1 kB / 0.6507 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.4641, allocations: 1.049 MB / 0.6517 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.4642, allocations: 54.03 kB / 0.6517 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.342e-05/0.4642, allocations: 72.69 kB / 0.6518 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.4653, allocations: 0.7947 MB / 0.6526 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.4654, allocations: 5.078 kB / 0.6526 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.848e-05/0.4654, allocations: 31.34 kB / 0.6526 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.4655, allocations: 21.72 kB / 0.6526 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.4666, allocations: 0.5693 MB / 0.6532 GB, free: 14.23 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.003243/0.4698, allocations: 3.565 MB / 0.6567 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005343/0.4704, allocations: 266.5 kB / 0.6569 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000328/0.4707, allocations: 174.6 kB / 0.6571 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003666/0.4711, allocations: 0.6562 MB / 0.6577 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.4711, allocations: 40.25 kB / 0.6578 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=31): time 2.014e-06/0.4711, allocations: 0 / 0.6578 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31): time 0.001336/0.4724, allocations: 0.5132 MB / 0.6583 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.4725, allocations: 58.97 kB / 0.6583 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/0.4739, allocations: 0.9489 MB / 0.6593 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.219e-05/0.474, allocations: 40.86 kB / 0.6593 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003961/0.4744, allocations: 499.2 kB / 0.6598 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.4745, allocations: 112.3 kB / 0.6599 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.4747, allocations: 114.5 kB / 0.66 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.991e-05/0.4748, allocations: 329.8 kB / 0.6603 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000415/0.4752, allocations: 165.4 kB / 0.6605 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.4757, allocations: 350.5 kB / 0.6608 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008082/0.4765, allocations: 0.5077 MB / 0.6613 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.4765, allocations: 2.969 kB / 0.6613 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001423/0.4779, allocations: 0.6203 MB / 0.6619 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.478, allocations: 7.531 kB / 0.6619 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.478, allocations: 9.594 kB / 0.6619 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.503e-05/0.478, allocations: 8.156 kB / 0.6619 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005368/0.4786, allocations: 126.5 kB / 0.6621 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.379e-05/0.4786, allocations: 22.77 kB / 0.6621 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000787/0.4794, allocations: 88.08 kB / 0.6622 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/0.4795, allocations: 25.84 kB / 0.6622 GB, free: 8.094 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.00041/0.4799, allocations: 275.4 kB / 0.6624 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.4801, allocations: 99.22 kB / 0.6625 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009532/0.481, allocations: 479.1 kB / 0.663 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.4811, allocations: 9.406 kB / 0.663 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.4811, allocations: 4.641 kB / 0.663 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006814/0.4818, allocations: 452.6 kB / 0.6634 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002158/0.4839, allocations: 1.363 MB / 0.6648 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.4839, allocations: 9.938 kB / 0.6648 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003321/0.4843, allocations: 72.89 kB / 0.6649 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.4843, allocations: 3.469 kB / 0.6649 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.551e-05/0.4843, allocations: 13.91 kB / 0.6649 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.4843, allocations: 2.75 kB / 0.6649 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.4843, allocations: 2.156 kB / 0.6649 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.4855, allocations: 0.7646 MB / 0.6656 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002639/0.4858, allocations: 225.3 kB / 0.6658 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.4859, allocations: 11.64 kB / 0.6658 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004925/0.4864, allocations: 32.31 kB / 0.6659 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.765e-05/0.4865, allocations: 24.38 kB / 0.6659 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.739e-05/0.4865, allocations: 24.8 kB / 0.6659 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007844/0.4873, allocations: 0.6581 MB / 0.6666 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4873, allocations: 0 / 0.6666 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009862/0.4883, allocations: 338.4 kB / 0.6669 GB, free: 5.66 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.001928/0.4903, allocations: 1.597 MB / 0.6685 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009699/0.4912, allocations: 442.5 kB / 0.6689 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.4913, allocations: 1.094 kB / 0.6689 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003766/0.4916, allocations: 188.6 kB / 0.6691 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.4942, allocations: 0.6107 MB / 0.6697 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008675/0.5029, allocations: 7.219 MB / 0.6767 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/0.5036, allocations: 1.037 MB / 0.6777 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0009354/0.5045, allocations: 203.6 kB / 0.6779 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004679/0.505, allocations: 373.2 kB / 0.6783 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of SimCode: time 6.92e-07/0.505, allocations: 0 / 0.6783 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.065/0.57, allocations: 29.55 MB / 0.7071 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.521/9.091, allocations: 3.938 kB / 0.7071 GB, free: 14.71 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)