Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IBPSA_latest_IBPSA_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.001723/0.001723, allocations: 99.27 kB / 16.4 MB, free: 6.496 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.001916/0.001915, allocations: 195.8 kB / 17.34 MB, free: 5.77 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6994/0.6994, allocations: 115.3 MB / 406.5 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001418, allocations: 64.44 kB / 0.5572 GB, free: 32.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1544, allocations: 76.18 MB / 0.6316 GB, free: 4.902 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04407/0.1985, allocations: 41.56 MB / 0.6722 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01607/0.2147, allocations: 10.39 MB / 0.6823 GB, free: 0.7617 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002728/0.2174, allocations: 55.69 kB / 0.6824 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.2198, allocations: 0.6482 MB / 0.683 GB, free: 56 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.006464/0.2264, allocations: 1.88 MB / 0.6848 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003474/0.2299, allocations: 1.187 MB / 0.686 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004889/0.2348, allocations: 3.397 MB / 0.6893 GB, free: 9.582 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001883/0.2367, allocations: 1.063 MB / 0.6904 GB, free: 8.5 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003482/0.2402, allocations: 1.261 MB / 0.6916 GB, free: 7.238 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001801/0.242, allocations: 0.8906 MB / 0.6925 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0003582/0.2424, allocations: 100 kB / 0.6926 GB, free: 6.246 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002735/0.2451, allocations: 0.8578 MB / 0.6934 GB, free: 5.387 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004951/0.2457, allocations: 287 kB / 0.6937 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001357/0.247, allocations: 0.626 MB / 0.6943 GB, free: 4.477 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003768/0.2508, allocations: 1.925 MB / 0.6962 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2508, allocations: 0 / 0.6962 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2508, allocations: 0 / 0.6962 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.973e-05/0.2509, allocations: 0 / 0.6962 GB, free: 2.547 MB / 0.5294 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.003516/0.2544, allocations: 1.515 MB / 0.6976 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.2545, allocations: 8.031 kB / 0.6976 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002217/0.2547, allocations: 114.7 kB / 0.6978 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004906/0.2552, allocations: 139.4 kB / 0.6979 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002108/0.2573, allocations: 1.107 MB / 0.699 GB, free: 15.56 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.214e-05/0.2574, allocations: 58 kB / 0.699 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.2575, allocations: 75.91 kB / 0.6991 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.259, allocations: 0.7905 MB / 0.6999 GB, free: 14.61 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.259, allocations: 4 kB / 0.6999 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.235e-05/0.2591, allocations: 28 kB / 0.6999 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-05/0.2591, allocations: 23.98 kB / 0.6999 GB, free: 14.55 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.2603, allocations: 0.5711 MB / 0.7005 GB, free: 13.98 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.00439/0.2647, allocations: 3.536 MB / 0.7039 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/0.2653, allocations: 270.4 kB / 0.7042 GB, free: 9.941 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003319/0.2656, allocations: 176.8 kB / 0.7044 GB, free: 9.766 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005316/0.2662, allocations: 0.6532 MB / 0.705 GB, free: 8.965 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.2662, allocations: 42.55 kB / 0.705 GB, free: 8.914 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 2.354e-06/0.2662, allocations: 0 / 0.705 GB, free: 8.914 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001197/0.2674, allocations: 0.5132 MB / 0.7055 GB, free: 8.395 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.2675, allocations: 59.41 kB / 0.7056 GB, free: 8.324 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.2687, allocations: 0.9495 MB / 0.7065 GB, free: 7.355 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.673e-05/0.2688, allocations: 33.7 kB / 0.7066 GB, free: 7.316 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004018/0.2692, allocations: 0.4918 MB / 0.707 GB, free: 6.816 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.2693, allocations: 114.4 kB / 0.7071 GB, free: 6.703 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.2695, allocations: 114 kB / 0.7073 GB, free: 6.586 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2696, allocations: 329.9 kB / 0.7076 GB, free: 6.258 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003486/0.27, allocations: 169 kB / 0.7077 GB, free: 6.094 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004793/0.2705, allocations: 350.9 kB / 0.7081 GB, free: 5.676 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007851/0.2713, allocations: 0.507 MB / 0.7086 GB, free: 5.098 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.2713, allocations: 4 kB / 0.7086 GB, free: 5.094 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001165/0.2725, allocations: 0.6059 MB / 0.7092 GB, free: 4.48 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.2725, allocations: 12.03 kB / 0.7092 GB, free: 4.469 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.2725, allocations: 4 kB / 0.7092 GB, free: 4.465 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.2725, allocations: 8 kB / 0.7092 GB, free: 4.457 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004304/0.273, allocations: 131.8 kB / 0.7093 GB, free: 4.328 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.815e-05/0.273, allocations: 15.97 kB / 0.7093 GB, free: 4.312 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006219/0.2736, allocations: 83.19 kB / 0.7094 GB, free: 4.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/0.2737, allocations: 27.94 kB / 0.7094 GB, free: 4.203 MB / 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.0003634/0.2741, allocations: 277.2 kB / 0.7097 GB, free: 3.926 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.2743, allocations: 98.78 kB / 0.7098 GB, free: 3.828 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009457/0.2752, allocations: 492.3 kB / 0.7102 GB, free: 3.344 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.2752, allocations: 4 kB / 0.7103 GB, free: 3.34 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.2753, allocations: 4 kB / 0.7103 GB, free: 3.336 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006708/0.2759, allocations: 457 kB / 0.7107 GB, free: 2.859 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002146/0.2781, allocations: 1.362 MB / 0.712 GB, free: 1.426 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.2781, allocations: 4 kB / 0.712 GB, free: 1.422 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.2785, allocations: 79.89 kB / 0.7121 GB, free: 1.344 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.2785, allocations: 3.938 kB / 0.7121 GB, free: 1.34 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.2785, allocations: 11.98 kB / 0.7121 GB, free: 1.328 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.2785, allocations: 8.156 kB / 0.7121 GB, free: 1.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.2785, allocations: 4 kB / 0.7121 GB, free: 1.316 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.2798, allocations: 0.7594 MB / 0.7129 GB, free: 0.5273 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003554/0.2801, allocations: 227.6 kB / 0.7131 GB, free: 292 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.2803, allocations: 12 kB / 0.7131 GB, free: 280 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000519/0.2809, allocations: 35.94 kB / 0.7131 GB, free: 244 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.483e-05/0.2809, allocations: 28.03 kB / 0.7132 GB, free: 216 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-05/0.281, allocations: 19.98 kB / 0.7132 GB, free: 196 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008972/0.2819, allocations: 0.655 MB / 0.7138 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2819, allocations: 0 / 0.7138 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001001/0.2829, allocations: 343.4 kB / 0.7141 GB, free: 15.19 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.002284/0.2852, allocations: 1.595 MB / 0.7157 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009084/0.2861, allocations: 429.1 kB / 0.7161 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.2861, allocations: 4 kB / 0.7161 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003536/0.2865, allocations: 184 kB / 0.7163 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/0.2891, allocations: 0.6096 MB / 0.7169 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.2992, allocations: 6.807 MB / 0.7235 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006854/0.2999, allocations: 1.032 MB / 0.7245 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000802/0.3007, allocations: 196.4 kB / 0.7247 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004985/0.3013, allocations: 379.3 kB / 0.7251 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of SimCode: time 6.41e-07/0.3013, allocations: 4 kB / 0.7251 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3629/0.6642, allocations: 30.16 MB / 0.7545 GB, free: 106.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.432/10.1, allocations: 14.83 kB / 0.7546 GB, free: 106.8 MB / 0.5762 GB (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)