Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit") translateModel(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9149/0.9149, allocations: 143.4 MB / 158.3 MB, free: 5.828 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 183.8 kB / 191.5 MB, free: 5.77 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.2 MB / 447.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008433/0.0008433, allocations: 88.31 kB / 0.5188 GB, free: 1.195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001694/0.001694, allocations: 270.2 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004994/0.0004994, allocations: 11.03 kB / 0.6929 GB, free: 59.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1771, allocations: 82.8 MB / 0.7737 GB, free: 13.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8986/1.076, allocations: 381.4 MB / 1.146 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/1.076, allocations: 92.08 kB / 1.146 GB, free: 5.488 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.493/2.569, allocations: 315.5 MB / 1.454 GB, free: 164.3 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.503e-06/2.569, allocations: 3 kB / 1.454 GB, free: 164.3 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001048/2.569, allocations: 27.42 kB / 1.454 GB, free: 164.3 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002866/2.572, allocations: 1.39 MB / 1.456 GB, free: 163.8 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/2.572, allocations: 10.22 kB / 1.456 GB, free: 163.8 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003142/2.572, allocations: 124.6 kB / 1.456 GB, free: 163.8 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002436/2.575, allocations: 1.086 MB / 1.457 GB, free: 163.5 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-05/2.575, allocations: 43.5 kB / 1.457 GB, free: 163.5 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.942e-05/2.575, allocations: 53.19 kB / 1.457 GB, free: 163.5 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/2.576, allocations: 0.5438 MB / 1.458 GB, free: 163.4 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/2.576, allocations: 3.719 kB / 1.458 GB, free: 163.4 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.494e-05/2.576, allocations: 20.44 kB / 1.458 GB, free: 163.4 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.243e-05/2.576, allocations: 13.78 kB / 1.458 GB, free: 163.4 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009497/2.577, allocations: 431.3 kB / 1.458 GB, free: 163.4 MB / 0.7136 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.004025/2.581, allocations: 2.658 MB / 1.461 GB, free: 162.3 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008569/2.582, allocations: 377.3 kB / 1.461 GB, free: 162.3 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007649/2.583, allocations: 0.858 MB / 1.462 GB, free: 161.3 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/2.583, allocations: 33.66 kB / 1.462 GB, free: 161.3 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=32): time 3.626e-06/2.583, allocations: 0 / 1.462 GB, free: 161.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=32): time 0.001669/2.585, allocations: 0.5386 MB / 1.462 GB, free: 161.2 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.855e-05/2.585, allocations: 54.72 kB / 1.462 GB, free: 161.1 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002849/2.587, allocations: 1.028 MB / 1.463 GB, free: 161 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.924e-05/2.588, allocations: 32.39 kB / 1.463 GB, free: 161 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005923/2.588, allocations: 459.6 kB / 1.464 GB, free: 160.8 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/2.588, allocations: 117.1 kB / 1.464 GB, free: 160.8 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/2.588, allocations: 8.062 kB / 1.464 GB, free: 160.8 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.00015/2.588, allocations: 323.7 kB / 1.464 GB, free: 160.5 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/2.589, allocations: 150.2 kB / 1.464 GB, free: 160.5 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005685/2.589, allocations: 249.4 kB / 1.465 GB, free: 160.3 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004736/2.59, allocations: 180.3 kB / 1.465 GB, free: 160.3 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/2.59, allocations: 0 / 1.465 GB, free: 160.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001229/2.591, allocations: 0.5077 MB / 1.465 GB, free: 160.3 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003287/2.592, allocations: 0.701 MB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/2.592, allocations: 2.25 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.027e-05/2.592, allocations: 4.219 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004655/2.592, allocations: 99.02 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.093e-05/2.592, allocations: 10.95 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000785/2.593, allocations: 78.38 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.431e-05/2.593, allocations: 18.47 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/2.593, allocations: 6.969 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009342/2.594, allocations: 395.6 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/2.594, allocations: 5.688 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.787e-06/2.594, allocations: 3.781 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004062/2.594, allocations: 94.91 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/2.594, allocations: 4.312 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005195/2.595, allocations: 70.86 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.435e-05/2.595, allocations: 24.38 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Warning: Assuming fixed start value for the following 1 variables: CHP.vol.dynBal.U:VARIABLE(start = CHP.vol.dynBal.fluidVolume * CHP.vol.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$CHP$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$CHP$vol$dynBal.Medium.setState_pTX(CHP.vol.dynBal.p_start, CHP.vol.dynBal.T_start, {})) + (-273.15 + CHP.vol.dynBal.T_start) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true final = true ) "Internal energy of fluid" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008771/2.596, allocations: 380 kB / 1.467 GB, free: 159.3 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002312/2.596, allocations: 98.39 kB / 1.467 GB, free: 159.3 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/2.598, allocations: 0.6154 MB / 1.468 GB, free: 159.2 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.874e-05/2.598, allocations: 11.23 kB / 1.468 GB, free: 159.2 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/2.598, allocations: 0 / 1.468 GB, free: 159.2 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001065/2.599, allocations: 0.6556 MB / 1.469 GB, free: 158.9 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003444/2.602, allocations: 1.617 MB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/2.603, allocations: 6.094 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003468/2.603, allocations: 71.25 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.509e-05/2.603, allocations: 6.062 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.134e-05/2.603, allocations: 13.84 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.827e-06/2.603, allocations: 3.312 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/2.603, allocations: 6.062 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/2.605, allocations: 0.9644 MB / 1.471 GB, free: 158 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005398/2.605, allocations: 276.1 kB / 1.471 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/2.606, allocations: 11.62 kB / 1.471 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005014/2.606, allocations: 41.44 kB / 1.471 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/2.606, allocations: 34.48 kB / 1.472 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.61e-05/2.606, allocations: 16.25 kB / 1.472 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001584/2.608, allocations: 0.8144 MB / 1.472 GB, free: 157.8 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.91e-07/2.608, allocations: 1.375 kB / 1.472 GB, free: 157.8 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.002345/2.61, allocations: 493.8 kB / 1.473 GB, free: 157.7 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (senTemIn.T,senTemOut.T,CHP.vol.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 (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002206/2.612, allocations: 0.7835 MB / 1.474 GB, free: 157.6 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.00153/2.614, allocations: 0.6085 MB / 1.474 GB, free: 157.6 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/2.614, allocations: 0 / 1.474 GB, free: 157.6 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0004512/2.614, allocations: 223.1 kB / 1.474 GB, free: 157.6 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002147/2.617, allocations: 432.4 kB / 1.475 GB, free: 157.6 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003491/2.62, allocations: 2.179 MB / 1.477 GB, free: 156.7 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006104/2.621, allocations: 1.059 MB / 1.478 GB, free: 156 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0009903/2.622, allocations: 243.2 kB / 1.478 GB, free: 156 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/2.622, allocations: 80.45 kB / 1.478 GB, free: 156 MB / 0.7136 GB Notification: Performance of SimCode: time 1.402e-06/2.622, allocations: 0 / 1.478 GB, free: 156 MB / 0.7136 GB Notification: Performance of Templates: time 0.03096/2.653, allocations: 19.2 MB / 1.497 GB, free: 155.6 MB / 0.7136 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.sim & ./BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.pipe 2>&1)