Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_Buildings_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.0008495/0.0008495, allocations: 97.88 kB / 15.36 MB, free: 0.7344 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.00539/0.00539, allocations: 171 kB / 16.27 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.4 MB / 222.4 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.74/1.74, allocations: 292.7 MB / 0.5502 GB, free: 14.44 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005522/0.0005524, allocations: 15.97 kB / 0.6744 GB, free: 25.72 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2134, allocations: 116.3 MB / 0.788 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03815/0.2516, allocations: 40.5 MB / 0.8275 GB, free: 2.816 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01355/0.2652, allocations: 10.26 MB / 0.8376 GB, free: 8.535 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001683/0.2669, allocations: 51.62 kB / 0.8376 GB, free: 8.484 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001618/0.2686, allocations: 0.5244 MB / 0.8381 GB, free: 7.957 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.004799/0.2734, allocations: 1.731 MB / 0.8398 GB, free: 6.219 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003008/0.2764, allocations: 1.083 MB / 0.8409 GB, free: 5.148 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.005182/0.2816, allocations: 4.506 MB / 0.8453 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.2833, allocations: 0.8617 MB / 0.8461 GB, free: 15.75 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002239/0.2855, allocations: 1.015 MB / 0.8471 GB, free: 14.73 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001108/0.2867, allocations: 0.8592 MB / 0.8479 GB, free: 13.87 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 9.142e-05/0.2868, allocations: 36 kB / 0.848 GB, free: 13.83 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001778/0.2886, allocations: 0.7716 MB / 0.8487 GB, free: 13.06 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002205/0.2888, allocations: 211 kB / 0.8489 GB, free: 12.85 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0005958/0.2894, allocations: 0.5768 MB / 0.8495 GB, free: 12.27 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.002233/0.2916, allocations: 1.826 MB / 0.8513 GB, free: 10.43 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2916, allocations: 0 / 0.8513 GB, free: 10.43 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.744e-06/0.2917, allocations: 0 / 0.8513 GB, free: 10.43 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.2917, allocations: 3.938 kB / 0.8513 GB, free: 10.43 MB / 0.67 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.002088/0.2938, allocations: 1.305 MB / 0.8525 GB, free: 9.07 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.2938, allocations: 8.031 kB / 0.8526 GB, free: 9.062 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001403/0.294, allocations: 114.7 kB / 0.8527 GB, free: 8.941 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000304/0.2943, allocations: 135.4 kB / 0.8528 GB, free: 8.809 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/0.2958, allocations: 1.067 MB / 0.8538 GB, free: 7.703 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/0.2959, allocations: 57.92 kB / 0.8539 GB, free: 7.645 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.296, allocations: 72 kB / 0.854 GB, free: 7.574 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.2973, allocations: 0.8022 MB / 0.8547 GB, free: 6.738 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.2973, allocations: 0 / 0.8547 GB, free: 6.738 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.99e-05/0.2974, allocations: 32 kB / 0.8548 GB, free: 6.707 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.934e-05/0.2974, allocations: 20 kB / 0.8548 GB, free: 6.688 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.2985, allocations: 0.5945 MB / 0.8554 GB, free: 6.09 MB / 0.67 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.003805/0.3023, allocations: 3.555 MB / 0.8588 GB, free: 2.305 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000588/0.3029, allocations: 275.8 kB / 0.8591 GB, free: 2.031 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003701/0.3033, allocations: 191.4 kB / 0.8593 GB, free: 1.844 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004939/0.3038, allocations: 0.657 MB / 0.8599 GB, free: 1.039 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.3039, allocations: 42.56 kB / 0.86 GB, free: 0.9883 MB / 0.67 GB Notification: Performance of pre-optimization done (n=31): time 2.454e-06/0.3039, allocations: 0 / 0.86 GB, free: 0.9883 MB / 0.67 GB Notification: Performance of matching and sorting (n=31): time 0.001181/0.3051, allocations: 0.5373 MB / 0.8605 GB, free: 456 kB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.3051, allocations: 59.34 kB / 0.8606 GB, free: 384 kB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001113/0.3063, allocations: 0.9292 MB / 0.8615 GB, free: 15.43 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.255e-05/0.3063, allocations: 37.7 kB / 0.8615 GB, free: 15.38 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003638/0.3067, allocations: 495.6 kB / 0.862 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 9.932e-05/0.3068, allocations: 118.4 kB / 0.8621 GB, free: 14.77 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.545e-05/0.3069, allocations: 45.7 kB / 0.8621 GB, free: 14.72 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.307, allocations: 329.9 kB / 0.8624 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.3074, allocations: 177 kB / 0.8626 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004792/0.3079, allocations: 358.9 kB / 0.863 GB, free: 13.79 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008437/0.3087, allocations: 0.5381 MB / 0.8635 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3087, allocations: 4 kB / 0.8635 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00111/0.3098, allocations: 0.6328 MB / 0.8641 GB, free: 12.54 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3099, allocations: 8 kB / 0.8641 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.3099, allocations: 4.438 kB / 0.8641 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.3099, allocations: 12 kB / 0.8641 GB, free: 12.52 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.3104, allocations: 131.8 kB / 0.8643 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.3104, allocations: 11.94 kB / 0.8643 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007131/0.3111, allocations: 115.2 kB / 0.8644 GB, free: 12.26 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.577e-05/0.3112, allocations: 31.94 kB / 0.8644 GB, free: 12.23 MB / 0.6856 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.000357/0.3115, allocations: 277.6 kB / 0.8647 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.3117, allocations: 98.78 kB / 0.8648 GB, free: 11.85 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009708/0.3126, allocations: 0.4925 MB / 0.8652 GB, free: 11.36 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3127, allocations: 4 kB / 0.8652 GB, free: 11.35 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3127, allocations: 0 / 0.8652 GB, free: 11.35 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007395/0.3134, allocations: 476.8 kB / 0.8657 GB, free: 10.86 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.3155, allocations: 1.378 MB / 0.867 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.3156, allocations: 7.938 kB / 0.8671 GB, free: 9.398 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003585/0.3159, allocations: 83.83 kB / 0.8671 GB, free: 9.316 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.3159, allocations: 4 kB / 0.8671 GB, free: 9.312 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/0.316, allocations: 16.14 kB / 0.8672 GB, free: 9.297 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.316, allocations: 4 kB / 0.8672 GB, free: 9.293 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.316, allocations: 0 / 0.8672 GB, free: 9.293 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.3173, allocations: 0.7889 MB / 0.8679 GB, free: 8.473 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.3176, allocations: 255.6 kB / 0.8682 GB, free: 8.203 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.3178, allocations: 8 kB / 0.8682 GB, free: 8.195 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005622/0.3183, allocations: 52.02 kB / 0.8682 GB, free: 8.145 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.553e-05/0.3184, allocations: 27.95 kB / 0.8683 GB, free: 8.117 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.558e-05/0.3184, allocations: 23.98 kB / 0.8683 GB, free: 8.094 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007963/0.3192, allocations: 0.643 MB / 0.8689 GB, free: 7.441 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3193, allocations: 4 kB / 0.8689 GB, free: 7.438 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0009117/0.3202, allocations: 323.5 kB / 0.8692 GB, free: 7.121 MB / 0.6856 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.002135/0.3223, allocations: 1.615 MB / 0.8708 GB, free: 5.473 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0009058/0.3232, allocations: 452 kB / 0.8712 GB, free: 5.031 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3232, allocations: 0 / 0.8712 GB, free: 5.031 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003881/0.3236, allocations: 196.6 kB / 0.8714 GB, free: 4.84 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/0.3268, allocations: 0.5989 MB / 0.872 GB, free: 4.246 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.3386, allocations: 7.542 MB / 0.8794 GB, free: 12.31 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006223/0.3392, allocations: 1.032 MB / 0.8804 GB, free: 11.25 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0008528/0.3401, allocations: 199.1 kB / 0.8806 GB, free: 11.05 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004459/0.3406, allocations: 367.3 kB / 0.8809 GB, free: 10.69 MB / 0.7012 GB Notification: Performance of SimCode: time 1.313e-06/0.3406, allocations: 0 / 0.8809 GB, free: 10.69 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04784/0.3884, allocations: 28.34 MB / 0.9086 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.3886, allocations: 245.4 kB / 0.9088 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.455/2.843, allocations: 3.938 kB / 0.9088 GB, free: 14.53 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)