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: translateModel(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005199/0.005204, allocations: 105.1 kB / 15.74 MB, free: 5.984 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.00109/0.00109, allocations: 197.5 kB / 16.67 MB, free: 5.91 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002078/0.002078, allocations: 294.2 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9544/0.9544, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 95.84 kB / 0.6815 GB, free: 6.945 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4513/0.453, allocations: 86.98 MB / 0.7664 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04153/0.4946, allocations: 41.55 MB / 0.807 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01547/0.5101, allocations: 10.41 MB / 0.8171 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00221/0.5124, allocations: 59.62 kB / 0.8172 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.5144, allocations: 0.6404 MB / 0.8178 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005149/0.5195, allocations: 1.88 MB / 0.8196 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002981/0.5225, allocations: 1.189 MB / 0.8208 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004276/0.5268, allocations: 3.402 MB / 0.8241 GB, free: 8.555 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/0.5283, allocations: 1.059 MB / 0.8252 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002827/0.5311, allocations: 1.263 MB / 0.8264 GB, free: 6.219 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.5324, allocations: 0.8789 MB / 0.8273 GB, free: 5.336 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.5326, allocations: 100 kB / 0.8274 GB, free: 5.238 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001946/0.5346, allocations: 0.8694 MB / 0.8282 GB, free: 4.367 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002812/0.5348, allocations: 275 kB / 0.8285 GB, free: 4.098 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007221/0.5356, allocations: 0.6298 MB / 0.8291 GB, free: 3.465 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002926/0.5385, allocations: 1.942 MB / 0.831 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.5385, allocations: 0 / 0.831 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5385, allocations: 4 kB / 0.831 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.91e-05/0.5386, allocations: 0 / 0.831 GB, free: 1.516 MB / 0.5919 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.002555/0.5411, allocations: 1.511 MB / 0.8325 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.5412, allocations: 8.031 kB / 0.8325 GB, free: 15.94 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000358/0.5415, allocations: 135.4 kB / 0.8326 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/0.5434, allocations: 1.102 MB / 0.8337 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.496e-05/0.5434, allocations: 58 kB / 0.8337 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.5435, allocations: 75.91 kB / 0.8338 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.5448, allocations: 0.7944 MB / 0.8346 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.5449, allocations: 0 / 0.8346 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.262e-05/0.545, allocations: 32 kB / 0.8346 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.075e-05/0.545, allocations: 20 kB / 0.8346 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.5461, allocations: 0.5711 MB / 0.8352 GB, free: 13.09 MB / 0.6075 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.004158/0.5503, allocations: 3.548 MB / 0.8386 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005673/0.5508, allocations: 262.4 kB / 0.8389 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.5512, allocations: 173.3 kB / 0.8391 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000517/0.5517, allocations: 0.6571 MB / 0.8397 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.5517, allocations: 42.48 kB / 0.8397 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=31): time 1.994e-06/0.5518, allocations: 0 / 0.8397 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31): time 0.001209/0.553, allocations: 0.5139 MB / 0.8402 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.553, allocations: 59.41 kB / 0.8403 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/0.5542, allocations: 0.9456 MB / 0.8412 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.5543, allocations: 33.7 kB / 0.8413 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004034/0.5547, allocations: 0.4956 MB / 0.8417 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.5548, allocations: 114.4 kB / 0.8418 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.555, allocations: 114 kB / 0.842 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.5551, allocations: 329.9 kB / 0.8423 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003559/0.5554, allocations: 169 kB / 0.8424 GB, free: 5.195 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005167/0.556, allocations: 349.3 kB / 0.8428 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008212/0.5568, allocations: 0.5039 MB / 0.8433 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.5568, allocations: 4 kB / 0.8433 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001119/0.5579, allocations: 0.6096 MB / 0.8439 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.558, allocations: 11.12 kB / 0.8439 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.558, allocations: 4 kB / 0.8439 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.558, allocations: 15.97 kB / 0.8439 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000446/0.5585, allocations: 135.7 kB / 0.844 GB, free: 3.426 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.5585, allocations: 8 kB / 0.844 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006032/0.5591, allocations: 83.56 kB / 0.8441 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.5592, allocations: 27.98 kB / 0.8441 GB, free: 3.309 MB / 0.6075 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.0003638/0.5595, allocations: 273.8 kB / 0.8444 GB, free: 3.031 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.5597, allocations: 98.78 kB / 0.8445 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009806/0.5607, allocations: 499 kB / 0.845 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.5607, allocations: 4 kB / 0.845 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5607, allocations: 0 / 0.845 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007197/0.5614, allocations: 449.5 kB / 0.8454 GB, free: 1.969 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.5635, allocations: 1.37 MB / 0.8467 GB, free: 0.5273 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.5635, allocations: 4 kB / 0.8467 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003519/0.5639, allocations: 75.95 kB / 0.8468 GB, free: 460 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.5639, allocations: 12.09 kB / 0.8468 GB, free: 448 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.5639, allocations: 8 kB / 0.8468 GB, free: 440 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.564, allocations: 3.984 kB / 0.8468 GB, free: 436 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.564, allocations: 4 kB / 0.8468 GB, free: 432 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.5653, allocations: 0.767 MB / 0.8476 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003375/0.5656, allocations: 227.7 kB / 0.8478 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.5658, allocations: 12 kB / 0.8478 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005048/0.5663, allocations: 32.03 kB / 0.8478 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.75e-05/0.5664, allocations: 23.97 kB / 0.8479 GB, free: 15.31 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.5664, allocations: 19.98 kB / 0.8479 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008235/0.5672, allocations: 0.6588 MB / 0.8485 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5672, allocations: 0 / 0.8485 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009432/0.5682, allocations: 343.4 kB / 0.8489 GB, free: 14.29 MB / 0.6231 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.0007401/0.5689, allocations: 383.6 kB / 0.8492 GB, free: 13.92 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.000928/0.5699, allocations: 423.8 kB / 0.8496 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5699, allocations: 0 / 0.8496 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003862/0.5703, allocations: 197.5 kB / 0.8498 GB, free: 13.31 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/0.5729, allocations: 0.6178 MB / 0.8504 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/0.5753, allocations: 1.59 MB / 0.852 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006104/0.5759, allocations: 1.032 MB / 0.853 GB, free: 10 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0006671/0.5766, allocations: 199.5 kB / 0.8532 GB, free: 9.812 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.5767, allocations: 79.42 kB / 0.8532 GB, free: 9.734 MB / 0.6231 GB Notification: Performance of SimCode: time 6.62e-07/0.5767, allocations: 4 kB / 0.8532 GB, free: 9.73 MB / 0.6231 GB Notification: Performance of Templates: time 0.03616/0.6129, allocations: 21.68 MB / 0.8744 GB, free: 4.359 MB / 0.6387 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)