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.0008905/0.0008905, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009326/0.0009322, allocations: 192.6 kB / 16.14 MB, free: 6.715 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.183/1.183, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003232/0.003232, allocations: 286.6 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9193/0.9193, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 99.47 kB / 0.5946 GB, free: 28.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1557, allocations: 86.97 MB / 0.6795 GB, free: 1.094 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03657/0.1923, allocations: 41.33 MB / 0.7199 GB, free: 7.629 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01411/0.2065, allocations: 10.45 MB / 0.7301 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002841/0.2094, allocations: 55.69 kB / 0.7302 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002496/0.212, allocations: 0.5205 MB / 0.7307 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006459/0.2185, allocations: 1.757 MB / 0.7324 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003037/0.2215, allocations: 1.068 MB / 0.7334 GB, free: 9.75 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.005168/0.2267, allocations: 4.521 MB / 0.7378 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.2281, allocations: 0.8751 MB / 0.7387 GB, free: 4.328 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002212/0.2303, allocations: 1.042 MB / 0.7397 GB, free: 3.281 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001186/0.2315, allocations: 0.8982 MB / 0.7406 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.000116/0.2317, allocations: 52 kB / 0.7406 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001789/0.2335, allocations: 0.7755 MB / 0.7414 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002683/0.2337, allocations: 231 kB / 0.7416 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006565/0.2344, allocations: 0.5752 MB / 0.7422 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002145/0.2365, allocations: 1.873 MB / 0.744 GB, free: 14.87 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2366, allocations: 0 / 0.744 GB, free: 14.87 MB / 0.545 GB Notification: Performance of FrontEnd: time 8.61e-07/0.2366, allocations: 0 / 0.744 GB, free: 14.87 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.352e-05/0.2366, allocations: 0 / 0.744 GB, free: 14.87 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.002309/0.2389, allocations: 1.528 MB / 0.7455 GB, free: 13.29 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.239, allocations: 12.03 kB / 0.7455 GB, free: 13.27 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000125/0.2391, allocations: 110.7 kB / 0.7456 GB, free: 13.16 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003246/0.2394, allocations: 143.4 kB / 0.7458 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/0.2409, allocations: 1.076 MB / 0.7468 GB, free: 11.9 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.472e-05/0.2409, allocations: 54 kB / 0.7469 GB, free: 11.84 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.947e-05/0.241, allocations: 72 kB / 0.7469 GB, free: 11.77 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.2423, allocations: 0.7905 MB / 0.7477 GB, free: 10.95 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.2423, allocations: 0 / 0.7477 GB, free: 10.95 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.764e-05/0.2424, allocations: 35.98 kB / 0.7477 GB, free: 10.91 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.742e-05/0.2424, allocations: 20 kB / 0.7478 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.2435, allocations: 0.5711 MB / 0.7483 GB, free: 10.32 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.003532/0.247, allocations: 3.536 MB / 0.7518 GB, free: 6.559 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005329/0.2476, allocations: 261.4 kB / 0.752 GB, free: 6.297 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003221/0.2479, allocations: 177.3 kB / 0.7522 GB, free: 6.121 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004527/0.2484, allocations: 0.6648 MB / 0.7528 GB, free: 5.309 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.2484, allocations: 38.56 kB / 0.7529 GB, free: 5.262 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.583e-06/0.2484, allocations: 0 / 0.7529 GB, free: 5.262 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.00109/0.2495, allocations: 0.509 MB / 0.7534 GB, free: 4.746 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.2495, allocations: 59.41 kB / 0.7534 GB, free: 4.676 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/0.2506, allocations: 0.9299 MB / 0.7543 GB, free: 3.727 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.2507, allocations: 37.7 kB / 0.7544 GB, free: 3.684 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003651/0.251, allocations: 499.6 kB / 0.7548 GB, free: 3.188 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.2511, allocations: 114.4 kB / 0.755 GB, free: 3.074 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.2513, allocations: 114 kB / 0.7551 GB, free: 2.957 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2514, allocations: 333.9 kB / 0.7554 GB, free: 2.625 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003476/0.2518, allocations: 169 kB / 0.7555 GB, free: 2.457 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004782/0.2523, allocations: 347.6 kB / 0.7559 GB, free: 2.047 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008054/0.2531, allocations: 0.5109 MB / 0.7564 GB, free: 1.465 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.2531, allocations: 4 kB / 0.7564 GB, free: 1.461 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001077/0.2542, allocations: 0.6135 MB / 0.757 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.2542, allocations: 8 kB / 0.757 GB, free: 0.832 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/0.2542, allocations: 4 kB / 0.757 GB, free: 0.8281 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.2542, allocations: 8 kB / 0.757 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004226/0.2547, allocations: 127.9 kB / 0.7571 GB, free: 0.6953 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/0.2547, allocations: 19.86 kB / 0.7571 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000656/0.2553, allocations: 107.4 kB / 0.7572 GB, free: 0.5703 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.884e-05/0.2554, allocations: 31.92 kB / 0.7573 GB, free: 0.5391 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.0003761/0.2558, allocations: 278.3 kB / 0.7575 GB, free: 264 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.256, allocations: 98.78 kB / 0.7576 GB, free: 164 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009695/0.2569, allocations: 492.4 kB / 0.7581 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.257, allocations: 4 kB / 0.7581 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.257, allocations: 0 / 0.7581 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006828/0.2577, allocations: 449.5 kB / 0.7585 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.2596, allocations: 1.37 MB / 0.7599 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.2596, allocations: 0 / 0.7599 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003178/0.2599, allocations: 79.83 kB / 0.7599 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.2599, allocations: 4.156 kB / 0.7599 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.26, allocations: 12 kB / 0.76 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.26, allocations: 4 kB / 0.76 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.26, allocations: 3.984 kB / 0.76 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.2612, allocations: 0.7621 MB / 0.7607 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002937/0.2615, allocations: 231.7 kB / 0.7609 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.2616, allocations: 8 kB / 0.7609 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005349/0.2622, allocations: 44.02 kB / 0.761 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.256e-05/0.2622, allocations: 27.95 kB / 0.761 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/0.2623, allocations: 23.98 kB / 0.761 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007933/0.2631, allocations: 0.651 MB / 0.7617 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2631, allocations: 0 / 0.7617 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008677/0.264, allocations: 335.4 kB / 0.762 GB, free: 11.53 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.002162/0.2661, allocations: 1.584 MB / 0.7635 GB, free: 9.914 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008235/0.267, allocations: 416.6 kB / 0.7639 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.267, allocations: 4.188 kB / 0.7639 GB, free: 9.504 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003588/0.2673, allocations: 193.5 kB / 0.7641 GB, free: 9.316 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/0.2699, allocations: 0.5903 MB / 0.7647 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/0.2813, allocations: 7.481 MB / 0.772 GB, free: 0.8555 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2636/0.5449, allocations: 1.033 MB / 0.773 GB, free: 94.16 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001004/0.546, allocations: 191.2 kB / 0.7732 GB, free: 94.15 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004903/0.5465, allocations: 373.5 kB / 0.7735 GB, free: 94.15 MB / 0.5606 GB Notification: Performance of SimCode: time 9.32e-07/0.5465, allocations: 0 / 0.7735 GB, free: 94.15 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04784/0.5943, allocations: 28.38 MB / 0.8013 GB, free: 84.67 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/0.5945, allocations: 266 kB / 0.8015 GB, free: 84.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.449/3.043, allocations: 1.312 kB / 0.8015 GB, free: 84.31 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)