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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.9041/0.9041, allocations: 140.1 MB / 156 MB, free: 5.172 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 171.4 kB / 188.5 MB, free: 15.83 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.4 MB / 426.3 MB, free: 8.445 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009379/0.0009377, allocations: 85.47 kB / 0.4945 GB, free: 8.391 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001634/0.001634, allocations: 272 kB / 0.5728 GB, free: 66.2 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004923/0.0004924, allocations: 16 kB / 0.662 GB, free: 6.797 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3466, allocations: 79.3 MB / 0.7395 GB, free: 46.34 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.756/1.103, allocations: 379 MB / 1.11 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/1.103, allocations: 89.64 kB / 1.11 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.8876/1.99, allocations: 304.9 MB / 1.407 GB, free: 0.6055 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.673e-06/1.991, allocations: 4 kB / 1.407 GB, free: 0.6016 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0001511/1.991, allocations: 28 kB / 1.407 GB, free: 0.5742 MB / 0.6667 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.3684/2.359, allocations: 1.368 MB / 1.409 GB, free: 144.3 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/2.359, allocations: 9.531 kB / 1.409 GB, free: 144.3 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004197/2.36, allocations: 121.5 kB / 1.409 GB, free: 144.2 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002365/2.362, allocations: 1.082 MB / 1.41 GB, free: 143.9 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.042e-05/2.362, allocations: 40.39 kB / 1.41 GB, free: 143.9 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.129e-05/2.362, allocations: 53 kB / 1.41 GB, free: 143.9 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/2.363, allocations: 0.5491 MB / 1.411 GB, free: 143.8 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/2.363, allocations: 3.938 kB / 1.411 GB, free: 143.8 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/2.363, allocations: 19.56 kB / 1.411 GB, free: 143.8 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/2.363, allocations: 15.83 kB / 1.411 GB, free: 143.8 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008875/2.364, allocations: 424.1 kB / 1.411 GB, free: 143.8 MB / 0.6667 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.003737/2.368, allocations: 2.654 MB / 1.414 GB, free: 142.7 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007918/2.369, allocations: 362.9 kB / 1.414 GB, free: 142.7 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003046/2.369, allocations: 173.7 kB / 1.414 GB, free: 142.7 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000584/2.37, allocations: 0.8569 MB / 1.415 GB, free: 141.8 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/2.37, allocations: 36.47 kB / 1.415 GB, free: 141.7 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=32): time 2.375e-06/2.37, allocations: 0.5938 kB / 1.415 GB, free: 141.7 MB / 0.6667 GB Notification: Performance of matching and sorting (n=32): time 0.001252/2.371, allocations: 0.5355 MB / 1.416 GB, free: 141.6 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/2.371, allocations: 54.47 kB / 1.416 GB, free: 141.6 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/2.373, allocations: 1.115 MB / 1.417 GB, free: 141.4 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 4.274e-05/2.373, allocations: 39.95 kB / 1.417 GB, free: 141.4 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003235/2.373, allocations: 456.6 kB / 1.417 GB, free: 141.3 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/2.373, allocations: 116.3 kB / 1.417 GB, free: 141.2 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-05/2.373, allocations: 10.72 kB / 1.417 GB, free: 141.2 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.51e-05/2.373, allocations: 327.6 kB / 1.418 GB, free: 140.9 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002727/2.373, allocations: 143.4 kB / 1.418 GB, free: 140.9 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003156/2.374, allocations: 250.2 kB / 1.418 GB, free: 140.8 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007178/2.381, allocations: 1.565 MB / 1.42 GB, free: 140.7 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/2.381, allocations: 0 / 1.42 GB, free: 140.7 MB / 0.6667 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001102/2.382, allocations: 0.5117 MB / 1.42 GB, free: 140.6 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/2.382, allocations: 144 kB / 1.42 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/2.382, allocations: 2.094 kB / 1.42 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/2.382, allocations: 3.562 kB / 1.42 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000454/2.383, allocations: 95.75 kB / 1.42 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.305e-05/2.383, allocations: 8.5 kB / 1.42 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007705/2.384, allocations: 79.88 kB / 1.42 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-05/2.384, allocations: 23.78 kB / 1.42 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/2.384, allocations: 3.938 kB / 1.42 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009363/2.385, allocations: 394.8 kB / 1.421 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/2.385, allocations: 1.781 kB / 1.421 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.417e-06/2.385, allocations: 6.375 kB / 1.421 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003568/2.385, allocations: 94.33 kB / 1.421 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/2.385, allocations: 4.5 kB / 1.421 GB, free: 140.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000438/2.385, allocations: 70.61 kB / 1.421 GB, free: 140.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.835e-05/2.385, allocations: 22.02 kB / 1.421 GB, free: 140.4 MB / 0.6667 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.0006438/2.386, allocations: 390.1 kB / 1.421 GB, free: 140.2 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/2.386, allocations: 97.12 kB / 1.421 GB, free: 140.2 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009981/2.387, allocations: 0.6125 MB / 1.422 GB, free: 140.1 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/2.387, allocations: 14.23 kB / 1.422 GB, free: 140.1 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/2.387, allocations: 0 / 1.422 GB, free: 140.1 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006537/2.388, allocations: 0.6536 MB / 1.423 GB, free: 139.8 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002143/2.39, allocations: 1.609 MB / 1.424 GB, free: 139.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/2.39, allocations: 0 / 1.424 GB, free: 139.3 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/2.39, allocations: 71 kB / 1.424 GB, free: 139.3 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/2.39, allocations: 7.781 kB / 1.424 GB, free: 139.3 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/2.39, allocations: 19.97 kB / 1.424 GB, free: 139.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/2.39, allocations: 2.781 kB / 1.424 GB, free: 139.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/2.39, allocations: 3.875 kB / 1.424 GB, free: 139.3 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/2.392, allocations: 0.8875 MB / 1.425 GB, free: 139.1 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003113/2.392, allocations: 262 kB / 1.425 GB, free: 138.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/2.392, allocations: 26.81 kB / 1.425 GB, free: 138.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00042/2.392, allocations: 33.67 kB / 1.425 GB, free: 138.9 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.559e-05/2.393, allocations: 39.22 kB / 1.426 GB, free: 138.9 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/2.393, allocations: 13.84 kB / 1.426 GB, free: 138.9 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0008683/2.394, allocations: 0.798 MB / 1.426 GB, free: 138.8 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.5e-07/2.394, allocations: 0 / 1.426 GB, free: 138.8 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001268/2.395, allocations: 482.1 kB / 1.427 GB, free: 138.8 MB / 0.6667 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.001305/2.396, allocations: 0.74 MB / 1.427 GB, free: 138.7 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001009/2.397, allocations: 0.6041 MB / 1.428 GB, free: 138.6 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/2.397, allocations: 3.75 kB / 1.428 GB, free: 138.6 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0003334/2.397, allocations: 229.4 kB / 1.428 GB, free: 138.6 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002066/2.4, allocations: 434.5 kB / 1.429 GB, free: 138.6 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/2.402, allocations: 2.179 MB / 1.431 GB, free: 137.7 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/2.402, allocations: 1.032 MB / 1.432 GB, free: 137 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0008471/2.403, allocations: 241.8 kB / 1.432 GB, free: 137 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/2.403, allocations: 79.34 kB / 1.432 GB, free: 137 MB / 0.6667 GB Notification: Performance of SimCode: time 1.242e-06/2.403, allocations: 0 / 1.432 GB, free: 137 MB / 0.6667 GB Notification: Performance of Templates: time 0.02793/2.431, allocations: 19.09 MB / 1.451 GB, free: 136.6 MB / 0.6667 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)