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.007482/0.007483, allocations: 99.56 kB / 15.73 MB, free: 6.48 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.001919/0.00192, allocations: 193.7 kB / 16.68 MB, free: 6.363 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.52/1.52, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.9257/0.9257, allocations: 132.2 MB / 422.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 69.2 kB / 0.5809 GB, free: 1.074 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1906/0.1925, allocations: 80.2 MB / 0.6592 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04916/0.2417, allocations: 41.58 MB / 0.6998 GB, free: 4.23 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01712/0.2588, allocations: 10.38 MB / 0.7099 GB, free: 9.812 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002609/0.2615, allocations: 59.69 kB / 0.71 GB, free: 9.754 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002377/0.2639, allocations: 0.6326 MB / 0.7106 GB, free: 9.117 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.007245/0.2712, allocations: 1.881 MB / 0.7125 GB, free: 7.227 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004195/0.2754, allocations: 1.174 MB / 0.7136 GB, free: 6.066 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.008126/0.2836, allocations: 3.396 MB / 0.7169 GB, free: 2.664 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002471/0.2861, allocations: 1.06 MB / 0.718 GB, free: 1.586 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004512/0.2906, allocations: 1.242 MB / 0.7192 GB, free: 352 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002032/0.2927, allocations: 0.8828 MB / 0.72 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002212/0.2929, allocations: 100 kB / 0.7201 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002537/0.2954, allocations: 0.8578 MB / 0.721 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003759/0.2958, allocations: 287 kB / 0.7212 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009777/0.2968, allocations: 0.6299 MB / 0.7219 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003948/0.3008, allocations: 1.942 MB / 0.7237 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3008, allocations: 4 kB / 0.7238 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3008, allocations: 0 / 0.7238 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.076e-05/0.3008, allocations: 4 kB / 0.7238 GB, free: 11.63 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.002986/0.3038, allocations: 1.541 MB / 0.7253 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.3039, allocations: 12.03 kB / 0.7253 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000157/0.3041, allocations: 118.7 kB / 0.7254 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004028/0.3045, allocations: 140.1 kB / 0.7255 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002059/0.3065, allocations: 1.123 MB / 0.7266 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.755e-05/0.3066, allocations: 54 kB / 0.7267 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.3068, allocations: 75.94 kB / 0.7267 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.3082, allocations: 0.7866 MB / 0.7275 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.3083, allocations: 0 / 0.7275 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.27e-05/0.3083, allocations: 32 kB / 0.7275 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.553e-05/0.3084, allocations: 20 kB / 0.7276 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.3096, allocations: 0.5672 MB / 0.7281 GB, free: 7.027 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.004773/0.3144, allocations: 3.556 MB / 0.7316 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000652/0.315, allocations: 263.1 kB / 0.7318 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/0.3154, allocations: 180.8 kB / 0.732 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006811/0.3161, allocations: 0.6532 MB / 0.7326 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.679e-05/0.3162, allocations: 38.56 kB / 0.7327 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=31): time 2.825e-06/0.3162, allocations: 0 / 0.7327 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of matching and sorting (n=31): time 0.001389/0.3176, allocations: 0.5267 MB / 0.7332 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.3176, allocations: 59.34 kB / 0.7333 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.3191, allocations: 0.9456 MB / 0.7342 GB, free: 392 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.064e-05/0.3192, allocations: 29.7 kB / 0.7342 GB, free: 356 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005779/0.3198, allocations: 0.5045 MB / 0.7347 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.3199, allocations: 115.1 kB / 0.7348 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/0.3201, allocations: 118.1 kB / 0.7349 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3203, allocations: 330 kB / 0.7352 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004069/0.3207, allocations: 161 kB / 0.7354 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005945/0.3213, allocations: 350.9 kB / 0.7357 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009308/0.3223, allocations: 0.5078 MB / 0.7362 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.3223, allocations: 4 kB / 0.7362 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001366/0.3236, allocations: 0.6265 MB / 0.7368 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.3237, allocations: 6.031 kB / 0.7368 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.3237, allocations: 8 kB / 0.7368 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.141e-05/0.3237, allocations: 8.062 kB / 0.7369 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000485/0.3242, allocations: 123.8 kB / 0.737 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.295e-05/0.3243, allocations: 20.06 kB / 0.737 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007028/0.325, allocations: 87.42 kB / 0.7371 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.789e-05/0.325, allocations: 27.98 kB / 0.7371 GB, free: 13.21 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.0004534/0.3255, allocations: 274.5 kB / 0.7374 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.3257, allocations: 103.3 kB / 0.7375 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001078/0.3268, allocations: 492.7 kB / 0.7379 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.3268, allocations: 7.938 kB / 0.7379 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.3268, allocations: 3.984 kB / 0.7379 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008085/0.3276, allocations: 447 kB / 0.7384 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.3301, allocations: 1.37 MB / 0.7397 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3301, allocations: 3.938 kB / 0.7397 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000368/0.3305, allocations: 76.05 kB / 0.7398 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.053e-05/0.3305, allocations: 4 kB / 0.7398 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.789e-05/0.3305, allocations: 15.98 kB / 0.7398 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.3305, allocations: 4 kB / 0.7398 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3306, allocations: 0 / 0.7398 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.3321, allocations: 0.7719 MB / 0.7406 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004308/0.3325, allocations: 228.4 kB / 0.7408 GB, free: 9.293 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.3326, allocations: 12.06 kB / 0.7408 GB, free: 9.281 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004914/0.3331, allocations: 27.92 kB / 0.7408 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.473e-05/0.3332, allocations: 27.95 kB / 0.7408 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.685e-05/0.3333, allocations: 19.98 kB / 0.7409 GB, free: 9.207 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001084/0.3344, allocations: 0.6627 MB / 0.7415 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3344, allocations: 0 / 0.7415 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001253/0.3356, allocations: 343.2 kB / 0.7418 GB, free: 8.199 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.002858/0.3385, allocations: 1.599 MB / 0.7434 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001089/0.3396, allocations: 427.4 kB / 0.7438 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.3396, allocations: 1.375 kB / 0.7438 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004152/0.34, allocations: 189.3 kB / 0.744 GB, free: 5.969 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002981/0.343, allocations: 0.6123 MB / 0.7446 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/0.3543, allocations: 6.833 MB / 0.7513 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.3554, allocations: 1.044 MB / 0.7523 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0009319/0.3563, allocations: 199.4 kB / 0.7525 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000587/0.3569, allocations: 371.3 kB / 0.7528 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of SimCode: time 8.01e-07/0.3569, allocations: 0 / 0.7528 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07606/0.433, allocations: 29.71 MB / 0.7818 GB, free: 15.35 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.956/10.39, allocations: 16.8 kB / 0.7819 GB, free: 15.34 MB / 0.6231 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 & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)