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.005993/0.005993, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.001546/0.001546, allocations: 189.8 kB / 16.67 MB, free: 5.934 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8301/0.8301, allocations: 135.6 MB / 426.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 67.27 kB / 0.5857 GB, free: 21.44 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.158, allocations: 81.03 MB / 0.6649 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04311/0.2011, allocations: 41.56 MB / 0.7055 GB, free: 11.91 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01556/0.2167, allocations: 10.38 MB / 0.7156 GB, free: 1.496 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001842/0.2187, allocations: 59.62 kB / 0.7157 GB, free: 1.438 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.2204, allocations: 0.6326 MB / 0.7163 GB, free: 0.8008 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004993/0.2255, allocations: 1.884 MB / 0.7181 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003102/0.2286, allocations: 1.193 MB / 0.7193 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004865/0.2334, allocations: 3.387 MB / 0.7226 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00172/0.2352, allocations: 1.064 MB / 0.7236 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003222/0.2384, allocations: 1.24 MB / 0.7248 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001671/0.2401, allocations: 0.8828 MB / 0.7257 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002318/0.2404, allocations: 100 kB / 0.7258 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002397/0.2428, allocations: 0.8617 MB / 0.7266 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003874/0.2432, allocations: 287 kB / 0.7269 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009579/0.2442, allocations: 0.626 MB / 0.7275 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003371/0.2475, allocations: 1.943 MB / 0.7294 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.2476, allocations: 4 kB / 0.7294 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.803e-06/0.2476, allocations: 0 / 0.7294 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.35e-05/0.2476, allocations: 0 / 0.7294 GB, free: 3.301 MB / 0.5606 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.002647/0.2503, allocations: 1.556 MB / 0.7309 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.2503, allocations: 9.109 kB / 0.7309 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001405/0.2505, allocations: 110.7 kB / 0.7311 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003618/0.2508, allocations: 140.1 kB / 0.7312 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001903/0.2527, allocations: 1.111 MB / 0.7323 GB, free: 280 kB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.945e-05/0.2528, allocations: 61.88 kB / 0.7323 GB, free: 220 kB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.2529, allocations: 71.95 kB / 0.7324 GB, free: 148 kB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.2544, allocations: 0.7906 MB / 0.7332 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/0.2544, allocations: 7.984 kB / 0.7332 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.117e-05/0.2545, allocations: 28 kB / 0.7332 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.935e-05/0.2546, allocations: 20 kB / 0.7332 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.2558, allocations: 0.5711 MB / 0.7338 GB, free: 14.69 MB / 0.5762 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.004608/0.2604, allocations: 3.556 MB / 0.7373 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005896/0.261, allocations: 265.2 kB / 0.7375 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003542/0.2613, allocations: 176.8 kB / 0.7377 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005793/0.2619, allocations: 0.6609 MB / 0.7383 GB, free: 9.66 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.262, allocations: 38.56 kB / 0.7384 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=31): time 2.184e-06/0.262, allocations: 0 / 0.7384 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of matching and sorting (n=31): time 0.001333/0.2633, allocations: 0.5169 MB / 0.7389 GB, free: 9.09 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.2634, allocations: 63.28 kB / 0.7389 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/0.2646, allocations: 0.9495 MB / 0.7399 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.423e-05/0.2647, allocations: 37.7 kB / 0.7399 GB, free: 8.004 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004273/0.2651, allocations: 0.4965 MB / 0.7404 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.2653, allocations: 119 kB / 0.7405 GB, free: 7.387 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.2654, allocations: 118.2 kB / 0.7406 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.2656, allocations: 326 kB / 0.7409 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003686/0.266, allocations: 161 kB / 0.7411 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005492/0.2665, allocations: 350.9 kB / 0.7414 GB, free: 6.367 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008832/0.2674, allocations: 0.5148 MB / 0.7419 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.2674, allocations: 0 / 0.7419 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001349/0.2688, allocations: 0.6213 MB / 0.7425 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.2688, allocations: 8 kB / 0.7425 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.2688, allocations: 4.688 kB / 0.7425 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.2689, allocations: 8 kB / 0.7425 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.2693, allocations: 127.8 kB / 0.7426 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.916e-05/0.2694, allocations: 15.88 kB / 0.7427 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006148/0.27, allocations: 83.42 kB / 0.7427 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.128e-05/0.2701, allocations: 24 kB / 0.7428 GB, free: 4.887 MB / 0.5762 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.0004353/0.2705, allocations: 281.6 kB / 0.743 GB, free: 4.602 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.2707, allocations: 111.3 kB / 0.7431 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.2717, allocations: 486.6 kB / 0.7436 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.2717, allocations: 4 kB / 0.7436 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.2717, allocations: 3.938 kB / 0.7436 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007522/0.2725, allocations: 457.2 kB / 0.744 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.2746, allocations: 1.366 MB / 0.7454 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2746, allocations: 0 / 0.7454 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003317/0.275, allocations: 79.88 kB / 0.7455 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-06/0.275, allocations: 4 kB / 0.7455 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.275, allocations: 8 kB / 0.7455 GB, free: 2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.275, allocations: 4 kB / 0.7455 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.275, allocations: 4.062 kB / 0.7455 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.2764, allocations: 0.7761 MB / 0.7462 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003089/0.2767, allocations: 224.4 kB / 0.7465 GB, free: 0.9492 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.2768, allocations: 11.98 kB / 0.7465 GB, free: 0.9375 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004769/0.2773, allocations: 31.91 kB / 0.7465 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.439e-05/0.2774, allocations: 23.97 kB / 0.7465 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-05/0.2774, allocations: 19.98 kB / 0.7465 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008783/0.2783, allocations: 0.6667 MB / 0.7472 GB, free: 192 kB / 0.5762 GB Notification: Performance of sort global known variables: time 3.21e-07/0.2783, allocations: 0 / 0.7472 GB, free: 192 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.305/0.5833, allocations: 340.5 kB / 0.7475 GB, free: 79.53 MB / 0.5762 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.002868/0.5862, allocations: 1.584 MB / 0.7491 GB, free: 78.83 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001048/0.5873, allocations: 425.8 kB / 0.7495 GB, free: 78.83 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5873, allocations: 1.5 kB / 0.7495 GB, free: 78.83 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003991/0.5877, allocations: 186.8 kB / 0.7496 GB, free: 78.83 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002948/0.5906, allocations: 0.6144 MB / 0.7502 GB, free: 78.78 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.6008, allocations: 6.845 MB / 0.7569 GB, free: 75.65 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007238/0.6016, allocations: 1.036 MB / 0.7579 GB, free: 74.93 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009444/0.6026, allocations: 192.1 kB / 0.7581 GB, free: 74.91 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004738/0.603, allocations: 371.6 kB / 0.7585 GB, free: 74.64 MB / 0.5762 GB Notification: Performance of SimCode: time 7.21e-07/0.603, allocations: 0 / 0.7585 GB, free: 74.64 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06415/0.6672, allocations: 29.74 MB / 0.7875 GB, free: 59 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/11.14, allocations: 17.03 kB / 0.7875 GB, free: 58.98 MB / 0.5762 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)