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.8281/0.8281, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001024, allocations: 176.7 kB / 187.3 MB, free: 11.88 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.492/1.492, allocations: 221.3 MB / 441.4 MB, free: 4.676 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.0008947/0.000895, allocations: 101.3 kB / 0.5124 GB, free: 24.16 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002006/0.002006, allocations: 263 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.504e-05/4.515e-05, allocations: 4 kB / 0.6834 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.57/0.5701, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.007/1.577, allocations: 381.4 MB / 1.137 GB, free: 8.992 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00047/1.578, allocations: 85.7 kB / 1.137 GB, free: 8.953 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 1.196/2.774, allocations: 314.5 MB / 1.444 GB, free: 17.13 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.914e-06/2.774, allocations: 7.938 kB / 1.444 GB, free: 17.12 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001978/2.774, allocations: 27.98 kB / 1.444 GB, free: 17.09 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.003358/2.778, allocations: 1.182 MB / 1.445 GB, free: 15.86 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/2.778, allocations: 12.03 kB / 1.445 GB, free: 15.84 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000706/2.779, allocations: 118.6 kB / 1.445 GB, free: 15.73 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003264/2.782, allocations: 1.069 MB / 1.446 GB, free: 14.61 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.706e-05/2.782, allocations: 40.94 kB / 1.446 GB, free: 14.57 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002218/2.782, allocations: 56 kB / 1.446 GB, free: 14.52 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/2.784, allocations: 0.5164 MB / 1.447 GB, free: 13.98 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.586e-05/2.784, allocations: 0 / 1.447 GB, free: 13.98 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.386e-05/2.784, allocations: 24 kB / 1.447 GB, free: 13.96 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.379e-05/2.784, allocations: 12 kB / 1.447 GB, free: 13.95 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008386/2.785, allocations: 379.8 kB / 1.447 GB, free: 13.57 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.004624/2.789, allocations: 2.661 MB / 1.45 GB, free: 10.76 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007919/2.79, allocations: 349.4 kB / 1.45 GB, free: 10.41 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/2.79, allocations: 160.8 kB / 1.45 GB, free: 10.25 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007593/2.791, allocations: 0.8545 MB / 1.451 GB, free: 9.211 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/2.791, allocations: 38.5 kB / 1.451 GB, free: 9.164 MB / 0.698 GB Notification: Performance of pre-optimization done (n=32): time 2.886e-06/2.791, allocations: 4 kB / 1.451 GB, free: 9.16 MB / 0.698 GB Notification: Performance of matching and sorting (n=32): time 0.0006814/2.792, allocations: 384.9 kB / 1.452 GB, free: 8.777 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.334e-05/2.792, allocations: 55.41 kB / 1.452 GB, free: 8.711 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/2.793, allocations: 1.002 MB / 1.453 GB, free: 7.688 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.502e-05/2.793, allocations: 29.7 kB / 1.453 GB, free: 7.652 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000276/2.793, allocations: 472 kB / 1.453 GB, free: 7.188 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.099e-05/2.793, allocations: 118.3 kB / 1.453 GB, free: 7.07 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.69e-05/2.793, allocations: 4 kB / 1.453 GB, free: 7.066 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.927e-05/2.794, allocations: 322 kB / 1.454 GB, free: 6.746 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/2.794, allocations: 128.8 kB / 1.454 GB, free: 6.621 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002491/2.794, allocations: 231 kB / 1.454 GB, free: 6.355 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000233/2.794, allocations: 154 kB / 1.454 GB, free: 6.207 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/2.794, allocations: 4 kB / 1.454 GB, free: 6.203 MB / 0.698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006382/2.795, allocations: 493.8 kB / 1.454 GB, free: 5.715 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002014/2.795, allocations: 0.7008 MB / 1.455 GB, free: 4.961 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/2.795, allocations: 0 / 1.455 GB, free: 4.961 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/2.795, allocations: 4 kB / 1.455 GB, free: 4.957 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003283/2.795, allocations: 103.8 kB / 1.455 GB, free: 4.855 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/2.795, allocations: 7.938 kB / 1.455 GB, free: 4.848 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005653/2.796, allocations: 79.39 kB / 1.455 GB, free: 4.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.25e-05/2.796, allocations: 20 kB / 1.455 GB, free: 4.75 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.885e-06/2.796, allocations: 4 kB / 1.455 GB, free: 4.746 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004905/2.797, allocations: 355.9 kB / 1.456 GB, free: 4.398 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.876e-06/2.797, allocations: 4 kB / 1.456 GB, free: 4.395 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.468e-06/2.797, allocations: 4 kB / 1.456 GB, free: 4.391 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/2.797, allocations: 100.1 kB / 1.456 GB, free: 4.293 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/2.797, allocations: 4 kB / 1.456 GB, free: 4.289 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004023/2.797, allocations: 59.56 kB / 1.456 GB, free: 4.23 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/2.797, allocations: 27.92 kB / 1.456 GB, free: 4.203 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.0002011/2.798, allocations: 158 kB / 1.456 GB, free: 4.043 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/2.798, allocations: 98.78 kB / 1.456 GB, free: 3.945 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008399/2.799, allocations: 0.5738 MB / 1.457 GB, free: 3.363 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/2.799, allocations: 7.984 kB / 1.457 GB, free: 3.355 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/2.799, allocations: 0 / 1.457 GB, free: 3.355 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005482/2.799, allocations: 0.6234 MB / 1.457 GB, free: 2.664 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/2.801, allocations: 1.572 MB / 1.459 GB, free: 0.9961 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/2.801, allocations: 4.031 kB / 1.459 GB, free: 0.9922 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/2.801, allocations: 67.89 kB / 1.459 GB, free: 0.9258 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/2.801, allocations: 4 kB / 1.459 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/2.802, allocations: 19.94 kB / 1.459 GB, free: 0.9023 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/2.802, allocations: 4 kB / 1.459 GB, free: 0.8984 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/2.802, allocations: 0 / 1.459 GB, free: 0.8984 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6039/3.405, allocations: 0.9154 MB / 1.46 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/3.407, allocations: 275.1 kB / 1.46 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/3.407, allocations: 9.469 kB / 1.46 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005648/3.407, allocations: 37.02 kB / 1.46 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/3.407, allocations: 38.98 kB / 1.46 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.098e-05/3.407, allocations: 15.64 kB / 1.46 GB, free: 153.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001744/3.409, allocations: 0.8077 MB / 1.461 GB, free: 153.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.81e-07/3.409, allocations: 0 / 1.461 GB, free: 153.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002524/3.412, allocations: 496.8 kB / 1.461 GB, free: 153.2 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.00223/3.414, allocations: 0.7402 MB / 1.462 GB, free: 153.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001416/3.415, allocations: 0.5791 MB / 1.463 GB, free: 153.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/3.415, allocations: 3.156 kB / 1.463 GB, free: 153.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003992/3.416, allocations: 206 kB / 1.463 GB, free: 153.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/3.419, allocations: 436.1 kB / 1.463 GB, free: 153.1 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/3.422, allocations: 1.423 MB / 1.465 GB, free: 152.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008251/3.423, allocations: 1.061 MB / 1.466 GB, free: 152 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001608/3.424, allocations: 416.8 kB / 1.466 GB, free: 152 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/3.424, allocations: 62 kB / 1.466 GB, free: 152 MB / 0.698 GB Notification: Performance of SimCode: time 1.393e-06/3.424, allocations: 0 / 1.466 GB, free: 152 MB / 0.698 GB Notification: Performance of Templates: time 0.03552/3.46, allocations: 21.59 MB / 1.487 GB, free: 151.7 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)