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: "" <> buildModelFMU(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Cogeneration_Examples_CogenerationUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Cogeneration_Examples_CogenerationUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8511/0.8511, allocations: 143.3 MB / 158.3 MB, free: 5.777 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.001149/0.001149, allocations: 185 kB / 191.5 MB, free: 5.762 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.498/1.498, allocations: 223.2 MB / 447.7 MB, free: 4.812 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.0009543/0.0009543, allocations: 88.33 kB / 0.5187 GB, free: 1.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001715/0.001715, allocations: 265.5 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004606/0.0004607, allocations: 13.06 kB / 0.6929 GB, free: 59.53 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1385, allocations: 82.8 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.701/0.8395, allocations: 381.4 MB / 1.146 GB, free: 5.289 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.8398, allocations: 92.03 kB / 1.146 GB, free: 5.242 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.174/2.014, allocations: 315.5 MB / 1.454 GB, free: 164.4 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.734e-06/2.014, allocations: 0 / 1.454 GB, free: 164.4 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002086/2.014, allocations: 30.77 kB / 1.454 GB, free: 164.4 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.00389/2.018, allocations: 1.395 MB / 1.456 GB, free: 163.9 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/2.018, allocations: 13.38 kB / 1.456 GB, free: 163.9 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001635/2.018, allocations: 91.34 kB / 1.456 GB, free: 163.8 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003819/2.019, allocations: 121.1 kB / 1.456 GB, free: 163.8 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003179/2.022, allocations: 1.086 MB / 1.457 GB, free: 163.5 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.71e-05/2.022, allocations: 40.3 kB / 1.457 GB, free: 163.5 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/2.022, allocations: 51.81 kB / 1.457 GB, free: 163.5 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/2.023, allocations: 0.5472 MB / 1.458 GB, free: 163.4 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/2.024, allocations: 0 / 1.458 GB, free: 163.4 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.111e-05/2.024, allocations: 20.56 kB / 1.458 GB, free: 163.4 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.194e-05/2.024, allocations: 15.67 kB / 1.458 GB, free: 163.4 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/2.025, allocations: 428.7 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.004845/2.03, allocations: 2.667 MB / 1.461 GB, free: 162.3 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/2.031, allocations: 370.8 kB / 1.461 GB, free: 162.3 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007988/2.032, allocations: 0.8566 MB / 1.462 GB, free: 161.3 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/2.032, allocations: 36.02 kB / 1.462 GB, free: 161.3 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=32): time 3.968e-06/2.032, allocations: 0.9688 kB / 1.462 GB, free: 161.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=32): time 0.001694/2.033, allocations: 0.5376 MB / 1.463 GB, free: 161.2 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/2.033, allocations: 57.59 kB / 1.463 GB, free: 161.1 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00227/2.036, allocations: 1.018 MB / 1.464 GB, free: 161 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/2.036, allocations: 40.14 kB / 1.464 GB, free: 161 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004468/2.036, allocations: 459.6 kB / 1.464 GB, free: 160.8 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/2.036, allocations: 118.3 kB / 1.464 GB, free: 160.8 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/2.036, allocations: 10.92 kB / 1.464 GB, free: 160.8 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.657e-05/2.037, allocations: 323.8 kB / 1.465 GB, free: 160.5 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004697/2.037, allocations: 141.7 kB / 1.465 GB, free: 160.5 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005576/2.038, allocations: 253.2 kB / 1.465 GB, free: 160.4 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000528/2.038, allocations: 176 kB / 1.465 GB, free: 160.4 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/2.038, allocations: 4.156 kB / 1.465 GB, free: 160.4 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001503/2.04, allocations: 0.5105 MB / 1.466 GB, free: 160.3 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002277/2.04, allocations: 0.6973 MB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/2.04, allocations: 1.375 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/2.04, allocations: 4.844 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/2.041, allocations: 102.7 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/2.041, allocations: 7.234 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009922/2.042, allocations: 78.66 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.592e-05/2.042, allocations: 20.98 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/2.042, allocations: 4.75 kB / 1.466 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001143/2.043, allocations: 395.8 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/2.043, allocations: 3.031 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/2.043, allocations: 7.031 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006088/2.043, allocations: 90.86 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/2.044, allocations: 4.172 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00092/2.044, allocations: 72.28 kB / 1.467 GB, free: 159.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.869e-05/2.045, allocations: 19.92 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.0009026/2.045, allocations: 385.6 kB / 1.467 GB, free: 159.3 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002705/2.046, allocations: 98.5 kB / 1.467 GB, free: 159.3 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/2.047, allocations: 0.6122 MB / 1.468 GB, free: 159.2 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/2.048, allocations: 8.094 kB / 1.468 GB, free: 159.2 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/2.048, allocations: 2.781 kB / 1.468 GB, free: 159.2 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009296/2.048, allocations: 0.6575 MB / 1.469 GB, free: 158.9 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003123/2.052, allocations: 1.629 MB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/2.052, allocations: 1.219 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004444/2.052, allocations: 66.84 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/2.052, allocations: 3.625 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.1e-05/2.052, allocations: 13.69 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.635e-06/2.052, allocations: 6.781 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/2.052, allocations: 6.297 kB / 1.47 GB, free: 158.4 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001925/2.054, allocations: 0.9657 MB / 1.471 GB, free: 158 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006461/2.055, allocations: 276.2 kB / 1.472 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/2.055, allocations: 8.469 kB / 1.472 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006939/2.056, allocations: 38.12 kB / 1.472 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/2.056, allocations: 33.52 kB / 1.472 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.174e-05/2.056, allocations: 20 kB / 1.472 GB, free: 157.9 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001637/2.058, allocations: 0.8123 MB / 1.472 GB, free: 157.8 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.01e-07/2.058, allocations: 0 / 1.472 GB, free: 157.8 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.00228/2.06, allocations: 0.4934 MB / 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.005091/2.065, allocations: 2.668 MB / 1.476 GB, free: 156.3 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002316/2.067, allocations: 0.6107 MB / 1.476 GB, free: 156.3 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/2.067, allocations: 0.5625 kB / 1.476 GB, free: 156.3 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0008023/2.068, allocations: 226.5 kB / 1.476 GB, free: 156.3 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00321/2.071, allocations: 439 kB / 1.477 GB, free: 156.3 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008738/2.08, allocations: 6.869 MB / 1.484 GB, free: 153.4 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/2.081, allocations: 1.055 MB / 1.485 GB, free: 152.7 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0009417/2.082, allocations: 245.7 kB / 1.485 GB, free: 152.6 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004175/2.082, allocations: 363.7 kB / 1.485 GB, free: 152.6 MB / 0.7136 GB Notification: Performance of SimCode: time 1.042e-06/2.082, allocations: 0 / 1.485 GB, free: 152.6 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04732/2.129, allocations: 29.35 MB / 1.514 GB, free: 152 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/2.13, allocations: 252.2 kB / 1.514 GB, free: 151.7 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.97/5.099, allocations: 3.5 kB / 1.514 GB, free: 151.7 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Cogeneration_Examples_CogenerationUnit_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Cogeneration_Examples_CogenerationUnit.fmu > BuildingSystems_BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.pipe 2>&1)