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.0009027/0.0009027, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.0059/0.0059, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.272/1.272, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001847/0.001847, allocations: 270.5 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8837/0.8837, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004075/0.0004076, allocations: 17.67 kB / 0.5988 GB, free: 28.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1558, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04244/0.1983, allocations: 40.47 MB / 0.7248 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01363/0.212, allocations: 10.34 MB / 0.7349 GB, free: 12 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.2136, allocations: 51.62 kB / 0.7349 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.215, allocations: 0.5244 MB / 0.7354 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004393/0.2194, allocations: 1.746 MB / 0.7371 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002575/0.222, allocations: 1.073 MB / 0.7382 GB, free: 8.609 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004842/0.2269, allocations: 4.52 MB / 0.7426 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.228, allocations: 0.8501 MB / 0.7434 GB, free: 3.207 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001749/0.2298, allocations: 1.015 MB / 0.7444 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.2308, allocations: 0.8592 MB / 0.7452 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.903e-05/0.2309, allocations: 36 kB / 0.7453 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001749/0.2327, allocations: 0.7715 MB / 0.746 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.2329, allocations: 223 kB / 0.7462 GB, free: 304 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000592/0.2335, allocations: 0.5769 MB / 0.7468 GB, free: 15.71 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002114/0.2357, allocations: 1.834 MB / 0.7486 GB, free: 13.87 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.85e-06/0.2357, allocations: 0 / 0.7486 GB, free: 13.87 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2357, allocations: 7.938 kB / 0.7486 GB, free: 13.86 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.288e-05/0.2357, allocations: 0 / 0.7486 GB, free: 13.86 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.002043/0.2378, allocations: 1.297 MB / 0.7499 GB, free: 12.51 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.2378, allocations: 8.031 kB / 0.7499 GB, free: 12.5 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001319/0.2379, allocations: 118.7 kB / 0.75 GB, free: 12.38 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.2382, allocations: 131.4 kB / 0.7501 GB, free: 12.25 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.2397, allocations: 1.091 MB / 0.7512 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.791e-05/0.2398, allocations: 54 kB / 0.7512 GB, free: 11.06 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.2399, allocations: 72 kB / 0.7513 GB, free: 10.99 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.2413, allocations: 0.7983 MB / 0.7521 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.2414, allocations: 0 / 0.7521 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-05/0.2414, allocations: 32 kB / 0.7521 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.357e-05/0.2415, allocations: 23.98 kB / 0.7521 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001137/0.2426, allocations: 0.5906 MB / 0.7527 GB, free: 9.516 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.00394/0.2466, allocations: 3.555 MB / 0.7562 GB, free: 5.734 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005691/0.2472, allocations: 271.2 kB / 0.7564 GB, free: 5.461 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003523/0.2475, allocations: 186.5 kB / 0.7566 GB, free: 5.277 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005875/0.2481, allocations: 0.6576 MB / 0.7573 GB, free: 4.473 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.2482, allocations: 38.56 kB / 0.7573 GB, free: 4.426 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.2482, allocations: 0 / 0.7573 GB, free: 4.426 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001298/0.2495, allocations: 0.548 MB / 0.7578 GB, free: 3.871 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.2495, allocations: 59.41 kB / 0.7579 GB, free: 3.801 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/0.2507, allocations: 0.9299 MB / 0.7588 GB, free: 2.852 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.48e-05/0.2508, allocations: 33.7 kB / 0.7588 GB, free: 2.812 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004239/0.2512, allocations: 499.6 kB / 0.7593 GB, free: 2.316 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.715e-05/0.2513, allocations: 114.4 kB / 0.7594 GB, free: 2.203 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.3e-05/0.2514, allocations: 53.69 kB / 0.7595 GB, free: 2.145 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.2515, allocations: 325.9 kB / 0.7598 GB, free: 1.82 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003467/0.2518, allocations: 177 kB / 0.7599 GB, free: 1.648 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004694/0.2523, allocations: 363.5 kB / 0.7603 GB, free: 1.219 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008109/0.2531, allocations: 0.5305 MB / 0.7608 GB, free: 0.6172 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.2532, allocations: 4 kB / 0.7608 GB, free: 0.6133 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001095/0.2543, allocations: 0.6293 MB / 0.7614 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.2543, allocations: 15.94 kB / 0.7614 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2543, allocations: 11.88 kB / 0.7615 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.2543, allocations: 8 kB / 0.7615 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004267/0.2548, allocations: 127.8 kB / 0.7616 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.2548, allocations: 8 kB / 0.7616 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006836/0.2555, allocations: 119.1 kB / 0.7617 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.2555, allocations: 28 kB / 0.7617 GB, free: 15.66 MB / 0.5606 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.0004153/0.256, allocations: 278.3 kB / 0.762 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.2561, allocations: 106.8 kB / 0.7621 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009634/0.2571, allocations: 0.5001 MB / 0.7626 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.2571, allocations: 4 kB / 0.7626 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.2571, allocations: 0 / 0.7626 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007324/0.2578, allocations: 477.4 kB / 0.763 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.2599, allocations: 1.382 MB / 0.7644 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.2599, allocations: 7.938 kB / 0.7644 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.2603, allocations: 88.03 kB / 0.7645 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.2603, allocations: 4 kB / 0.7645 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.2603, allocations: 8 kB / 0.7645 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.2603, allocations: 0 / 0.7645 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2603, allocations: 4 kB / 0.7645 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.2616, allocations: 0.7971 MB / 0.7653 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003148/0.2619, allocations: 243.7 kB / 0.7655 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.262, allocations: 8 kB / 0.7655 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005524/0.2626, allocations: 63.91 kB / 0.7656 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.718e-05/0.2627, allocations: 23.97 kB / 0.7656 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/0.2627, allocations: 24.05 kB / 0.7656 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007998/0.2635, allocations: 0.651 MB / 0.7663 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2635, allocations: 0 / 0.7663 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009498/0.2645, allocations: 335.5 kB / 0.7666 GB, free: 10.52 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.002298/0.2668, allocations: 1.616 MB / 0.7682 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008734/0.2677, allocations: 440.7 kB / 0.7686 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2677, allocations: 0 / 0.7686 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003737/0.268, allocations: 197.3 kB / 0.7688 GB, free: 8.254 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00302/0.2711, allocations: 0.5953 MB / 0.7694 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3007/0.5718, allocations: 7.591 MB / 0.7768 GB, free: 91.61 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005792/0.5724, allocations: 1.038 MB / 0.7778 GB, free: 90.91 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009107/0.5733, allocations: 188.8 kB / 0.778 GB, free: 90.89 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004065/0.5737, allocations: 377.6 kB / 0.7783 GB, free: 90.89 MB / 0.5606 GB Notification: Performance of SimCode: time 6.31e-07/0.5738, allocations: 0.7812 kB / 0.7783 GB, free: 90.89 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0447/0.6185, allocations: 28.36 MB / 0.806 GB, free: 81.36 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/0.6187, allocations: 269.2 kB / 0.8063 GB, free: 81 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/2.959, allocations: 0 / 0.8063 GB, free: 81 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)