Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_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.001274/0.001274, 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.001307/0.001307, allocations: 193.8 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.256/1.256, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002032/0.002032, allocations: 267.1 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8946/0.8946, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 96.67 kB / 0.5953 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1397, allocations: 86.97 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03832/0.1781, allocations: 41.56 MB / 0.7209 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01365/0.1918, allocations: 10.41 MB / 0.731 GB, free: 12.47 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001645/0.1934, allocations: 55.69 kB / 0.7311 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001906/0.1954, allocations: 0.6404 MB / 0.7317 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004947/0.2004, allocations: 1.877 MB / 0.7335 GB, free: 9.887 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002798/0.2032, allocations: 1.181 MB / 0.7347 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004253/0.2075, allocations: 3.391 MB / 0.738 GB, free: 5.309 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001758/0.2092, allocations: 1.056 MB / 0.739 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002673/0.2119, allocations: 1.234 MB / 0.7402 GB, free: 3 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001463/0.2134, allocations: 0.8789 MB / 0.7411 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.00027/0.2137, allocations: 100 kB / 0.7412 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002396/0.2161, allocations: 0.8578 MB / 0.742 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004296/0.2165, allocations: 283 kB / 0.7423 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001195/0.2177, allocations: 0.6221 MB / 0.7429 GB, free: 264 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003062/0.2208, allocations: 1.916 MB / 0.7448 GB, free: 14.34 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2208, allocations: 4 kB / 0.7448 GB, free: 14.33 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2208, allocations: 0 / 0.7448 GB, free: 14.33 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.854e-05/0.2209, allocations: 0 / 0.7448 GB, free: 14.33 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.002589/0.2235, allocations: 1.518 MB / 0.7463 GB, free: 12.76 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2235, allocations: 12.03 kB / 0.7463 GB, free: 12.75 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001399/0.2237, allocations: 114.7 kB / 0.7464 GB, free: 12.63 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003655/0.2241, allocations: 131.4 kB / 0.7465 GB, free: 12.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00154/0.2256, allocations: 1.041 MB / 0.7475 GB, free: 11.41 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.466e-05/0.2257, allocations: 58 kB / 0.7476 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.2258, allocations: 75.94 kB / 0.7477 GB, free: 11.29 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.227, allocations: 0.7943 MB / 0.7484 GB, free: 10.45 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/0.2271, allocations: 3.906 kB / 0.7484 GB, free: 10.45 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.314e-05/0.2271, allocations: 28 kB / 0.7485 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.213e-05/0.2272, allocations: 31.98 kB / 0.7485 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.2283, allocations: 0.5672 MB / 0.749 GB, free: 9.824 MB / 0.545 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.003761/0.232, allocations: 3.567 MB / 0.7525 GB, free: 6.031 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005282/0.2326, allocations: 260.8 kB / 0.7528 GB, free: 5.77 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000325/0.2329, allocations: 183.6 kB / 0.753 GB, free: 5.59 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004485/0.2334, allocations: 0.6648 MB / 0.7536 GB, free: 4.777 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.2334, allocations: 38.55 kB / 0.7536 GB, free: 4.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.2334, allocations: 0 / 0.7536 GB, free: 4.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001163/0.2346, allocations: 0.5059 MB / 0.7541 GB, free: 4.219 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.2346, allocations: 63.41 kB / 0.7542 GB, free: 4.145 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.2358, allocations: 0.9456 MB / 0.7551 GB, free: 3.18 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.405e-05/0.2358, allocations: 37.64 kB / 0.7552 GB, free: 3.137 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000368/0.2362, allocations: 499.6 kB / 0.7556 GB, free: 2.645 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.2363, allocations: 118.4 kB / 0.7557 GB, free: 2.527 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.2364, allocations: 110.1 kB / 0.7558 GB, free: 2.414 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.2366, allocations: 329.9 kB / 0.7562 GB, free: 2.086 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003485/0.2369, allocations: 173 kB / 0.7563 GB, free: 1.914 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004502/0.2374, allocations: 343.6 kB / 0.7567 GB, free: 1.508 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007751/0.2382, allocations: 0.5109 MB / 0.7572 GB, free: 0.9258 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.2382, allocations: 4 kB / 0.7572 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001096/0.2393, allocations: 0.6135 MB / 0.7578 GB, free: 308 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.2393, allocations: 8 kB / 0.7578 GB, free: 300 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2393, allocations: 4 kB / 0.7578 GB, free: 296 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.2393, allocations: 8 kB / 0.7578 GB, free: 288 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/0.2398, allocations: 127.8 kB / 0.7579 GB, free: 160 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.2398, allocations: 15.92 kB / 0.7579 GB, free: 144 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005466/0.2403, allocations: 87.41 kB / 0.758 GB, free: 56 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.219e-05/0.2404, allocations: 27.94 kB / 0.758 GB, free: 28 kB / 0.545 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.0003172/0.2407, allocations: 274.5 kB / 0.7583 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.2409, allocations: 98.78 kB / 0.7584 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009204/0.2418, allocations: 499.7 kB / 0.7589 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.2418, allocations: 4 kB / 0.7589 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2418, allocations: 3.938 kB / 0.7589 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006818/0.2425, allocations: 449.5 kB / 0.7593 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.2444, allocations: 1.373 MB / 0.7606 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.2444, allocations: 4 kB / 0.7606 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000321/0.2448, allocations: 88.03 kB / 0.7607 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.2448, allocations: 0 / 0.7607 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.2448, allocations: 12 kB / 0.7607 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.2448, allocations: 0 / 0.7607 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2448, allocations: 4 kB / 0.7607 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.246, allocations: 0.7621 MB / 0.7615 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.2463, allocations: 223.7 kB / 0.7617 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.2464, allocations: 12 kB / 0.7617 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004903/0.2469, allocations: 39.95 kB / 0.7617 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.471e-05/0.247, allocations: 23.97 kB / 0.7618 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.2471, allocations: 19.98 kB / 0.7618 GB, free: 12 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007751/0.2478, allocations: 0.6549 MB / 0.7624 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2479, allocations: 0 / 0.7624 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008756/0.2487, allocations: 339.4 kB / 0.7627 GB, free: 11.01 MB / 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.002039/0.2508, allocations: 1.598 MB / 0.7643 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009404/0.2517, allocations: 440.5 kB / 0.7647 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2517, allocations: 384 / 0.7647 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003608/0.2521, allocations: 195.7 kB / 0.7649 GB, free: 8.758 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/0.2546, allocations: 0.6127 MB / 0.7655 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008809/0.2634, allocations: 7.221 MB / 0.7726 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2316/0.4951, allocations: 1.032 MB / 0.7736 GB, free: 93.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008766/0.496, allocations: 198.4 kB / 0.7738 GB, free: 93.79 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004587/0.4965, allocations: 372.1 kB / 0.7741 GB, free: 93.78 MB / 0.5606 GB Notification: Performance of SimCode: time 6.32e-07/0.4965, allocations: 0.9688 kB / 0.7741 GB, free: 93.78 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05706/0.5535, allocations: 29.59 MB / 0.803 GB, free: 83.63 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/8.495, allocations: 14.12 kB / 0.803 GB, free: 83.63 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)