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.809/0.809, allocations: 141.8 MB / 149.3 MB, free: 9.199 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.001089/0.001089, allocations: 176.9 kB / 182.2 MB, free: 9.441 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.383/1.383, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.0009997/0.0009997, allocations: 88.11 kB / 0.5074 GB, free: 10.17 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001817/0.001817, allocations: 275.9 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.77e-05/1.765e-05, allocations: 0 / 0.6765 GB, free: 12.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.465/0.465, allocations: 82.77 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8173/1.282, allocations: 380.7 MB / 1.129 GB, free: 0.6953 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/1.283, allocations: 91.83 kB / 1.129 GB, free: 0.6523 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.9643/2.247, allocations: 313 MB / 1.435 GB, free: 13.57 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.543e-06/2.247, allocations: 0 / 1.435 GB, free: 13.57 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001409/2.247, allocations: 36.11 kB / 1.435 GB, free: 13.54 MB / 0.698 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.002261/2.249, allocations: 1.19 MB / 1.436 GB, free: 12.29 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/2.249, allocations: 8.031 kB / 1.436 GB, free: 12.29 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004615/2.25, allocations: 122.6 kB / 1.436 GB, free: 12.16 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002209/2.252, allocations: 1.069 MB / 1.437 GB, free: 11.05 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.422e-05/2.252, allocations: 20 kB / 1.437 GB, free: 11.04 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-05/2.252, allocations: 32 kB / 1.437 GB, free: 11 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006368/2.253, allocations: 350.5 kB / 1.438 GB, free: 10.66 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007341/2.254, allocations: 462.8 kB / 1.438 GB, free: 10.18 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/2.254, allocations: 4 kB / 1.438 GB, free: 10.18 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.777e-05/2.254, allocations: 0 / 1.438 GB, free: 10.18 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/2.254, allocations: 16 kB / 1.438 GB, free: 10.16 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.003374/2.257, allocations: 2.545 MB / 1.441 GB, free: 7.477 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006192/2.258, allocations: 324.7 kB / 1.441 GB, free: 7.152 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/2.258, allocations: 144.8 kB / 1.441 GB, free: 7.008 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000611/2.259, allocations: 0.8506 MB / 1.442 GB, free: 5.973 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/2.259, allocations: 34.56 kB / 1.442 GB, free: 5.93 MB / 0.698 GB Notification: Performance of pre-optimization done (n=32): time 2.234e-06/2.259, allocations: 4 kB / 1.442 GB, free: 5.926 MB / 0.698 GB Notification: Performance of matching and sorting (n=32): time 0.001048/2.26, allocations: 420.9 kB / 1.442 GB, free: 5.508 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/2.26, allocations: 67.27 kB / 1.442 GB, free: 5.43 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/2.261, allocations: 0.8787 MB / 1.443 GB, free: 4.527 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/2.261, allocations: 25.7 kB / 1.443 GB, free: 4.496 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/2.261, allocations: 468.1 kB / 1.444 GB, free: 4.031 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.2e-05/2.261, allocations: 118.3 kB / 1.444 GB, free: 3.914 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.971e-05/2.261, allocations: 0 / 1.444 GB, free: 3.914 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.855e-05/2.261, allocations: 321.9 kB / 1.444 GB, free: 3.594 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/2.262, allocations: 120.8 kB / 1.444 GB, free: 3.477 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/2.262, allocations: 218.4 kB / 1.444 GB, free: 3.219 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006347/2.262, allocations: 221.7 kB / 1.445 GB, free: 3.004 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/2.262, allocations: 0 / 1.445 GB, free: 3.004 MB / 0.698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001013/2.263, allocations: 0.5019 MB / 1.445 GB, free: 2.496 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001329/2.264, allocations: 0.6992 MB / 1.446 GB, free: 1.742 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/2.264, allocations: 4 kB / 1.446 GB, free: 1.738 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/2.264, allocations: 11.95 kB / 1.446 GB, free: 1.727 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003646/2.264, allocations: 103.8 kB / 1.446 GB, free: 1.625 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/2.264, allocations: 4 kB / 1.446 GB, free: 1.621 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00055/2.265, allocations: 55.5 kB / 1.446 GB, free: 1.566 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-05/2.265, allocations: 27.98 kB / 1.446 GB, free: 1.539 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/2.265, allocations: 4.938 kB / 1.446 GB, free: 1.535 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008692/2.266, allocations: 383.6 kB / 1.446 GB, free: 1.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/2.266, allocations: 4 kB / 1.446 GB, free: 1.156 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.101e-06/2.266, allocations: 4 kB / 1.446 GB, free: 1.152 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003389/2.266, allocations: 96.03 kB / 1.446 GB, free: 1.059 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/2.266, allocations: 4 kB / 1.446 GB, free: 1.055 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/2.266, allocations: 47.66 kB / 1.447 GB, free: 1.008 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/2.266, allocations: 23.98 kB / 1.447 GB, free: 0.9844 MB / 0.698 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" 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 () * 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.0001804/2.267, allocations: 143.1 kB / 1.447 GB, free: 0.8359 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/2.267, allocations: 90.88 kB / 1.447 GB, free: 0.7461 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/2.268, allocations: 0.5921 MB / 1.447 GB, free: 152 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/2.268, allocations: 4 kB / 1.447 GB, free: 148 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/2.268, allocations: 7.922 kB / 1.447 GB, free: 140 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4147/2.683, allocations: 0.628 MB / 1.448 GB, free: 158 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003217/2.686, allocations: 1.498 MB / 1.449 GB, free: 157.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/2.686, allocations: 2.156 kB / 1.449 GB, free: 157.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003554/2.686, allocations: 68.31 kB / 1.449 GB, free: 157.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.12e-05/2.686, allocations: 4.062 kB / 1.449 GB, free: 157.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/2.686, allocations: 11.66 kB / 1.449 GB, free: 157.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/2.686, allocations: 3.844 kB / 1.45 GB, free: 157.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/2.686, allocations: 7.484 kB / 1.45 GB, free: 157.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001528/2.688, allocations: 0.9127 MB / 1.45 GB, free: 157.3 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000408/2.688, allocations: 262.6 kB / 1.451 GB, free: 157.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/2.689, allocations: 8.672 kB / 1.451 GB, free: 157.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004267/2.689, allocations: 29.67 kB / 1.451 GB, free: 157.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.933e-05/2.689, allocations: 31.72 kB / 1.451 GB, free: 157.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.38e-05/2.689, allocations: 19.38 kB / 1.451 GB, free: 157.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000967/2.69, allocations: 0.6826 MB / 1.451 GB, free: 157.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.2e-07/2.69, allocations: 0 / 1.451 GB, free: 157.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001544/2.692, allocations: 485.7 kB / 1.452 GB, free: 157.1 MB / 0.698 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 () * 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.00154/2.693, allocations: 0.7168 MB / 1.453 GB, free: 157 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001009/2.694, allocations: 0.5524 MB / 1.453 GB, free: 156.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/2.694, allocations: 1.547 kB / 1.453 GB, free: 156.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003095/2.695, allocations: 199.8 kB / 1.453 GB, free: 156.9 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/2.696, allocations: 341.9 kB / 1.454 GB, free: 156.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/2.699, allocations: 1.392 MB / 1.455 GB, free: 156.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005267/2.699, allocations: 1.06 MB / 1.456 GB, free: 155.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001083/2.7, allocations: 386.4 kB / 1.456 GB, free: 155.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/2.7, allocations: 54.55 kB / 1.456 GB, free: 155.8 MB / 0.698 GB Notification: Performance of SimCode: time 7.02e-07/2.701, allocations: 5.75 kB / 1.456 GB, free: 155.8 MB / 0.698 GB Notification: Performance of Templates: time 0.02804/2.729, allocations: 16.76 MB / 1.473 GB, free: 155.5 MB / 0.698 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)