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.9051/0.9051, allocations: 141.8 MB / 149.3 MB, free: 9.16 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.001191/0.00119, allocations: 180.8 kB / 182.2 MB, free: 9.398 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.668/1.668, allocations: 221.5 MB / 436.4 MB, free: 13.26 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.001028/0.001028, allocations: 91.84 kB / 0.5074 GB, free: 10.09 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001899/0.001899, allocations: 286 kB / 0.5889 GB, free: 54.63 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.712e-05/1.714e-05, allocations: 0 / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5358/0.5358, allocations: 82.78 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9725/1.508, allocations: 380.7 MB / 1.129 GB, free: 460 kB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/1.509, allocations: 84.75 kB / 1.129 GB, free: 416 kB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 1.034/2.543, allocations: 313 MB / 1.435 GB, free: 13.24 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.315e-06/2.543, allocations: 4 kB / 1.435 GB, free: 13.23 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001075/2.543, allocations: 27.92 kB / 1.435 GB, free: 13.21 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.002082/2.545, allocations: 1.181 MB / 1.436 GB, free: 11.97 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/2.545, allocations: 12.03 kB / 1.436 GB, free: 11.96 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003099/2.546, allocations: 118.6 kB / 1.436 GB, free: 11.84 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001935/2.548, allocations: 1.065 MB / 1.437 GB, free: 10.74 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/2.548, allocations: 20 kB / 1.437 GB, free: 10.72 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.019e-05/2.548, allocations: 39.98 kB / 1.437 GB, free: 10.68 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005899/2.548, allocations: 350.5 kB / 1.438 GB, free: 10.34 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006808/2.549, allocations: 466.8 kB / 1.438 GB, free: 9.855 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/2.549, allocations: 3.938 kB / 1.438 GB, free: 9.852 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.287e-05/2.549, allocations: 4 kB / 1.438 GB, free: 9.848 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.413e-05/2.549, allocations: 12 kB / 1.438 GB, free: 9.836 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.003346/2.553, allocations: 2.545 MB / 1.441 GB, free: 7.148 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006231/2.553, allocations: 326.9 kB / 1.441 GB, free: 6.82 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/2.553, allocations: 144.8 kB / 1.441 GB, free: 6.676 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006798/2.554, allocations: 0.8545 MB / 1.442 GB, free: 5.637 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/2.554, allocations: 34.56 kB / 1.442 GB, free: 5.594 MB / 0.698 GB Notification: Performance of pre-optimization done (n=32): time 3.577e-06/2.554, allocations: 0 / 1.442 GB, free: 5.594 MB / 0.698 GB Notification: Performance of matching and sorting (n=32): time 0.001036/2.555, allocations: 428.8 kB / 1.442 GB, free: 5.168 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.272e-05/2.555, allocations: 51.41 kB / 1.442 GB, free: 5.105 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/2.556, allocations: 0.8827 MB / 1.443 GB, free: 4.199 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/2.556, allocations: 25.7 kB / 1.443 GB, free: 4.168 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002732/2.557, allocations: 468.1 kB / 1.444 GB, free: 3.703 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.65e-05/2.557, allocations: 118.2 kB / 1.444 GB, free: 3.586 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.905e-05/2.557, allocations: 0 / 1.444 GB, free: 3.586 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.052e-05/2.557, allocations: 325.9 kB / 1.444 GB, free: 3.262 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/2.557, allocations: 120.8 kB / 1.444 GB, free: 3.145 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002442/2.557, allocations: 218.5 kB / 1.445 GB, free: 2.887 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006009/2.558, allocations: 229.7 kB / 1.445 GB, free: 2.664 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/2.558, allocations: 0 / 1.445 GB, free: 2.664 MB / 0.698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009433/2.559, allocations: 0.4978 MB / 1.445 GB, free: 2.16 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001761/2.559, allocations: 0.7033 MB / 1.446 GB, free: 1.402 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/2.559, allocations: 4 kB / 1.446 GB, free: 1.398 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/2.559, allocations: 11.89 kB / 1.446 GB, free: 1.387 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/2.559, allocations: 95.89 kB / 1.446 GB, free: 1.293 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/2.559, allocations: 4 kB / 1.446 GB, free: 1.289 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005485/2.56, allocations: 55.55 kB / 1.446 GB, free: 1.234 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.883e-05/2.56, allocations: 23.98 kB / 1.446 GB, free: 1.211 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/2.56, allocations: 8 kB / 1.446 GB, free: 1.203 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007856/2.561, allocations: 387.6 kB / 1.446 GB, free: 0.8242 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-06/2.561, allocations: 0 / 1.446 GB, free: 0.8242 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.933e-06/2.561, allocations: 4 kB / 1.446 GB, free: 0.8203 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/2.561, allocations: 91.83 kB / 1.447 GB, free: 0.7305 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.596e-06/2.561, allocations: 4.219 kB / 1.447 GB, free: 0.7266 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/2.562, allocations: 51.66 kB / 1.447 GB, free: 0.6758 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.899e-05/2.562, allocations: 23.98 kB / 1.447 GB, free: 0.6523 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.0002146/2.562, allocations: 142.5 kB / 1.447 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007937/2.563, allocations: 428.5 kB / 1.447 GB, free: 80 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.5695/3.132, allocations: 82.73 kB / 1.447 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002239/3.135, allocations: 0.5813 MB / 1.448 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.889e-05/3.135, allocations: 5.484 kB / 1.448 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/3.135, allocations: 0.75 kB / 1.448 GB, free: 157.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0011/3.136, allocations: 0.6418 MB / 1.448 GB, free: 157.3 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004003/3.14, allocations: 1.505 MB / 1.45 GB, free: 156.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/3.14, allocations: 2.812 kB / 1.45 GB, free: 156.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003969/3.14, allocations: 73.7 kB / 1.45 GB, free: 156.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.386e-05/3.14, allocations: 6.5 kB / 1.45 GB, free: 156.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.965e-05/3.14, allocations: 7.469 kB / 1.45 GB, free: 156.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.698e-06/3.14, allocations: 8.906 kB / 1.45 GB, free: 156.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/3.14, allocations: 2.359 kB / 1.45 GB, free: 156.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/3.142, allocations: 0.9167 MB / 1.451 GB, free: 156.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005331/3.143, allocations: 258.2 kB / 1.451 GB, free: 156.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/3.143, allocations: 4.547 kB / 1.451 GB, free: 156.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004358/3.143, allocations: 25.73 kB / 1.451 GB, free: 156.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/3.144, allocations: 36.88 kB / 1.451 GB, free: 156.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.033e-05/3.144, allocations: 21.94 kB / 1.451 GB, free: 156.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0013/3.145, allocations: 0.6781 MB / 1.452 GB, free: 156.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.71e-07/3.145, allocations: 0 / 1.452 GB, free: 156.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002236/3.147, allocations: 494.5 kB / 1.452 GB, free: 156.3 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.004406/3.152, allocations: 2.549 MB / 1.455 GB, free: 155 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001239/3.153, allocations: 0.5621 MB / 1.455 GB, free: 155 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/3.153, allocations: 0 / 1.455 GB, free: 155 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003891/3.153, allocations: 194 kB / 1.456 GB, free: 155 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002392/3.156, allocations: 336.7 kB / 1.456 GB, free: 154.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00462/3.16, allocations: 1.633 MB / 1.458 GB, free: 154.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007641/3.161, allocations: 1.056 MB / 1.459 GB, free: 153.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001668/3.163, allocations: 388.2 kB / 1.459 GB, free: 153.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004897/3.163, allocations: 337.1 kB / 1.459 GB, free: 153.8 MB / 0.698 GB Notification: Performance of SimCode: time 1.232e-06/3.163, allocations: 0 / 1.459 GB, free: 153.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06835/3.232, allocations: 25.08 MB / 1.484 GB, free: 153.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/3.232, allocations: 192.8 kB / 1.484 GB, free: 153.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.169/6.401, allocations: 0 / 1.484 GB, free: 153.3 MB / 0.698 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)