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.004984/0.004984, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.00126/0.00126, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8578/0.8578, allocations: 132.2 MB / 422.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 67.89 kB / 0.5809 GB, free: 8.051 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3747, allocations: 80.21 MB / 0.6592 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04124/0.416, allocations: 41.56 MB / 0.6998 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01548/0.4315, allocations: 10.38 MB / 0.7099 GB, free: 432 kB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00176/0.4333, allocations: 56.03 kB / 0.71 GB, free: 412 kB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.435, allocations: 0.6339 MB / 0.7106 GB, free: 15.86 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004965/0.44, allocations: 1.887 MB / 0.7124 GB, free: 14.34 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003026/0.443, allocations: 1.183 MB / 0.7136 GB, free: 13.44 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.004946/0.448, allocations: 3.386 MB / 0.7169 GB, free: 10.95 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001677/0.4497, allocations: 1.065 MB / 0.7179 GB, free: 9.867 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003334/0.453, allocations: 1.249 MB / 0.7192 GB, free: 8.621 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001601/0.4547, allocations: 0.8789 MB / 0.72 GB, free: 7.738 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002042/0.4549, allocations: 100 kB / 0.7201 GB, free: 7.641 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002303/0.4572, allocations: 0.8656 MB / 0.721 GB, free: 6.773 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003506/0.4575, allocations: 279 kB / 0.7212 GB, free: 6.5 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0008461/0.4584, allocations: 0.6221 MB / 0.7218 GB, free: 5.875 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003645/0.462, allocations: 1.954 MB / 0.7237 GB, free: 3.918 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.4621, allocations: 0 / 0.7237 GB, free: 3.918 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4621, allocations: 0 / 0.7237 GB, free: 3.918 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.01e-05/0.4621, allocations: 0 / 0.7237 GB, free: 3.918 MB / 0.545 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.002924/0.465, allocations: 1.552 MB / 0.7253 GB, free: 2.312 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.4651, allocations: 8.031 kB / 0.7253 GB, free: 2.305 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001775/0.4653, allocations: 114.7 kB / 0.7254 GB, free: 2.184 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004039/0.4657, allocations: 140.1 kB / 0.7255 GB, free: 2.047 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.4677, allocations: 1.119 MB / 0.7266 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.968e-05/0.4677, allocations: 57.98 kB / 0.7267 GB, free: 0.8281 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.4679, allocations: 71.98 kB / 0.7267 GB, free: 0.7578 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.4694, allocations: 0.7945 MB / 0.7275 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.4694, allocations: 0 / 0.7275 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.088e-05/0.4695, allocations: 28 kB / 0.7275 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.347e-05/0.4695, allocations: 16 kB / 0.7276 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.4707, allocations: 0.5789 MB / 0.7281 GB, free: 15.3 MB / 0.5606 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.004687/0.4754, allocations: 3.541 MB / 0.7316 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006921/0.4762, allocations: 271.3 kB / 0.7318 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000388/0.4766, allocations: 180.7 kB / 0.732 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006489/0.4772, allocations: 0.6532 MB / 0.7326 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.4773, allocations: 38.56 kB / 0.7327 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=31): time 2.254e-06/0.4773, allocations: 0 / 0.7327 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=31): time 0.001367/0.4786, allocations: 0.5228 MB / 0.7332 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.817e-05/0.4787, allocations: 59.34 kB / 0.7332 GB, free: 9.637 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.48, allocations: 0.9495 MB / 0.7342 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.73e-05/0.4801, allocations: 37.7 kB / 0.7342 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004877/0.4806, allocations: 0.5005 MB / 0.7347 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.4807, allocations: 123 kB / 0.7348 GB, free: 8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.4809, allocations: 110.2 kB / 0.7349 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.4811, allocations: 326 kB / 0.7352 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003817/0.4815, allocations: 165 kB / 0.7354 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005825/0.4821, allocations: 354.9 kB / 0.7357 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009276/0.483, allocations: 0.5039 MB / 0.7362 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.992e-06/0.483, allocations: 4 kB / 0.7362 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001312/0.4843, allocations: 0.6146 MB / 0.7368 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.4844, allocations: 11.94 kB / 0.7368 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.4844, allocations: 4.688 kB / 0.7368 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.688e-05/0.4844, allocations: 12 kB / 0.7369 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004629/0.4849, allocations: 127.8 kB / 0.737 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.911e-05/0.4849, allocations: 15.88 kB / 0.737 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000637/0.4856, allocations: 83.42 kB / 0.7371 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.307e-05/0.4856, allocations: 28 kB / 0.7371 GB, free: 5.504 MB / 0.5606 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.0004309/0.4861, allocations: 274.5 kB / 0.7374 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001773/0.4863, allocations: 107.3 kB / 0.7375 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/0.4873, allocations: 483.5 kB / 0.7379 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.4874, allocations: 12 kB / 0.7379 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/0.4874, allocations: 3.938 kB / 0.7379 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00085/0.4882, allocations: 459 kB / 0.7384 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/0.4906, allocations: 1.355 MB / 0.7397 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4906, allocations: 7.984 kB / 0.7397 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003533/0.491, allocations: 75.89 kB / 0.7398 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.491, allocations: 0 / 0.7398 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.491, allocations: 12 kB / 0.7398 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.491, allocations: 0 / 0.7398 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.4911, allocations: 4 kB / 0.7398 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.4925, allocations: 0.7838 MB / 0.7406 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003476/0.4929, allocations: 224.3 kB / 0.7408 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.493, allocations: 8 kB / 0.7408 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000505/0.4935, allocations: 39.86 kB / 0.7408 GB, free: 1.535 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.179e-05/0.4936, allocations: 23.97 kB / 0.7408 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-05/0.4936, allocations: 16.05 kB / 0.7409 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0009531/0.4946, allocations: 0.6666 MB / 0.7415 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4946, allocations: 0 / 0.7415 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001054/0.4956, allocations: 347.2 kB / 0.7418 GB, free: 492 kB / 0.5606 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.002635/0.4983, allocations: 1.598 MB / 0.7434 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009906/0.4993, allocations: 424.7 kB / 0.7438 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4993, allocations: 8.125 kB / 0.7438 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004049/0.4997, allocations: 181 kB / 0.744 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002828/0.5026, allocations: 0.6081 MB / 0.7446 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/0.5134, allocations: 6.844 MB / 0.7513 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007687/0.5142, allocations: 1.032 MB / 0.7523 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008344/0.515, allocations: 206.2 kB / 0.7525 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005295/0.5156, allocations: 371.3 kB / 0.7528 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of SimCode: time 1.222e-06/0.5156, allocations: 0 / 0.7528 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06722/0.5828, allocations: 29.73 MB / 0.7819 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.94, allocations: 5.562 kB / 0.7819 GB, free: 7.621 MB / 0.6075 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)