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.7794/0.7794, allocations: 141.7 MB / 154.3 MB, free: 15.48 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.001113/0.001113, allocations: 187.5 kB / 187.3 MB, free: 11.9 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.481/1.481, 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.0009342/0.0009343, allocations: 98.05 kB / 0.5124 GB, free: 24.21 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001879/0.001879, allocations: 275.1 kB / 0.5939 GB, free: 7.98 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.028e-05/4.031e-05, allocations: 4 kB / 0.6835 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5087/0.5087, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.841/1.35, allocations: 381.4 MB / 1.137 GB, free: 12.19 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000307/1.35, allocations: 91.69 kB / 1.137 GB, free: 12.14 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 1.055/2.405, allocations: 314.5 MB / 1.444 GB, free: 20.61 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.064e-06/2.406, allocations: 0 / 1.444 GB, free: 20.61 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001961/2.406, allocations: 27.98 kB / 1.444 GB, free: 20.59 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.003326/2.409, allocations: 1.189 MB / 1.445 GB, free: 19.34 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/2.409, allocations: 8.031 kB / 1.445 GB, free: 19.33 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002826/2.409, allocations: 90.52 kB / 1.445 GB, free: 19.23 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000654/2.41, allocations: 122.6 kB / 1.445 GB, free: 19.11 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002729/2.413, allocations: 1.077 MB / 1.446 GB, free: 17.99 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.794e-05/2.413, allocations: 41 kB / 1.446 GB, free: 17.95 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/2.413, allocations: 56 kB / 1.447 GB, free: 17.9 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009664/2.414, allocations: 0.5125 MB / 1.447 GB, free: 17.36 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/2.414, allocations: 4 kB / 1.447 GB, free: 17.36 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.437e-05/2.414, allocations: 23.94 kB / 1.447 GB, free: 17.34 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/2.414, allocations: 19.94 kB / 1.447 GB, free: 17.32 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006651/2.415, allocations: 379.9 kB / 1.447 GB, free: 16.95 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.003886/2.419, allocations: 2.653 MB / 1.45 GB, free: 14.14 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006755/2.419, allocations: 356.1 kB / 1.45 GB, free: 13.78 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/2.42, allocations: 152.8 kB / 1.451 GB, free: 13.63 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006097/2.42, allocations: 0.8506 MB / 1.451 GB, free: 12.59 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/2.42, allocations: 42.56 kB / 1.451 GB, free: 12.54 MB / 0.698 GB Notification: Performance of pre-optimization done (n=32): time 4.148e-06/2.42, allocations: 0 / 1.451 GB, free: 12.54 MB / 0.698 GB Notification: Performance of matching and sorting (n=32): time 0.0007868/2.421, allocations: 380.9 kB / 1.452 GB, free: 12.16 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/2.421, allocations: 63.34 kB / 1.452 GB, free: 12.09 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/2.423, allocations: 0.9982 MB / 1.453 GB, free: 11.07 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.215e-05/2.423, allocations: 33.7 kB / 1.453 GB, free: 11.03 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000302/2.423, allocations: 468 kB / 1.453 GB, free: 10.57 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 9.34e-05/2.423, allocations: 118.3 kB / 1.453 GB, free: 10.45 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.883e-05/2.423, allocations: 12 kB / 1.453 GB, free: 10.44 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.571e-05/2.423, allocations: 318 kB / 1.454 GB, free: 10.12 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/2.423, allocations: 128.8 kB / 1.454 GB, free: 9.996 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/2.424, allocations: 238.5 kB / 1.454 GB, free: 9.723 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000232/2.424, allocations: 153.8 kB / 1.454 GB, free: 9.574 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/2.424, allocations: 0 / 1.454 GB, free: 9.574 MB / 0.698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007586/2.425, allocations: 477.8 kB / 1.455 GB, free: 9.102 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001658/2.425, allocations: 0.7087 MB / 1.455 GB, free: 8.34 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/2.425, allocations: 4 kB / 1.455 GB, free: 8.336 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.736e-05/2.425, allocations: 7.938 kB / 1.455 GB, free: 8.328 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003438/2.425, allocations: 91.83 kB / 1.455 GB, free: 8.238 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/2.425, allocations: 0 / 1.455 GB, free: 8.238 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007148/2.426, allocations: 83.39 kB / 1.456 GB, free: 8.156 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/2.426, allocations: 23.98 kB / 1.456 GB, free: 8.133 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/2.426, allocations: 4 kB / 1.456 GB, free: 8.129 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005325/2.427, allocations: 355.9 kB / 1.456 GB, free: 7.781 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/2.427, allocations: 224 / 1.456 GB, free: 7.781 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.164e-06/2.427, allocations: 8 kB / 1.456 GB, free: 7.773 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003168/2.427, allocations: 91.89 kB / 1.456 GB, free: 7.684 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/2.427, allocations: 7.938 kB / 1.456 GB, free: 7.676 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006244/2.428, allocations: 71.55 kB / 1.456 GB, free: 7.605 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.726e-05/2.428, allocations: 20 kB / 1.456 GB, free: 7.586 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.0002202/2.428, allocations: 162 kB / 1.456 GB, free: 7.422 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/2.428, allocations: 98.78 kB / 1.456 GB, free: 7.324 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009531/2.429, allocations: 0.5777 MB / 1.457 GB, free: 6.742 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/2.429, allocations: 8 kB / 1.457 GB, free: 6.734 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/2.429, allocations: 4 kB / 1.457 GB, free: 6.73 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005102/2.43, allocations: 0.6195 MB / 1.458 GB, free: 6.043 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002327/2.432, allocations: 1.575 MB / 1.459 GB, free: 4.371 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/2.432, allocations: 0 / 1.459 GB, free: 4.371 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002865/2.432, allocations: 75.89 kB / 1.459 GB, free: 4.297 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/2.432, allocations: 4 kB / 1.459 GB, free: 4.293 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/2.432, allocations: 11.95 kB / 1.459 GB, free: 4.281 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/2.432, allocations: 4 kB / 1.459 GB, free: 4.277 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/2.432, allocations: 4.156 kB / 1.459 GB, free: 4.273 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009841/2.433, allocations: 0.912 MB / 1.46 GB, free: 3.285 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004574/2.434, allocations: 279.5 kB / 1.46 GB, free: 2.992 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001939/2.434, allocations: 8 kB / 1.46 GB, free: 2.984 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/2.434, allocations: 39.97 kB / 1.46 GB, free: 2.945 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.928e-05/2.435, allocations: 35.89 kB / 1.46 GB, free: 2.91 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-05/2.435, allocations: 15.98 kB / 1.46 GB, free: 2.895 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001023/2.436, allocations: 0.8041 MB / 1.461 GB, free: 2.078 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.31e-07/2.436, allocations: 0 / 1.461 GB, free: 2.078 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001563/2.437, allocations: 499.1 kB / 1.462 GB, free: 1.59 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.504/2.941, allocations: 2.571 MB / 1.464 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001574/2.943, allocations: 0.5817 MB / 1.465 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/2.943, allocations: 1.75 kB / 1.465 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004218/2.943, allocations: 207.7 kB / 1.465 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/2.946, allocations: 429.2 kB / 1.465 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/2.951, allocations: 1.683 MB / 1.467 GB, free: 152.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00092/2.952, allocations: 1.064 MB / 1.468 GB, free: 151.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00169/2.953, allocations: 414 kB / 1.468 GB, free: 151.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004736/2.954, allocations: 338.3 kB / 1.469 GB, free: 151.8 MB / 0.698 GB Notification: Performance of SimCode: time 1.323e-06/2.954, allocations: 4.125 kB / 1.469 GB, free: 151.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05947/3.013, allocations: 31.23 MB / 1.499 GB, free: 151.2 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/3.013, allocations: 216.4 kB / 1.499 GB, free: 151 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.251/6.264, allocations: 0.5312 kB / 1.499 GB, free: 151 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)