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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008431/0.000843, allocations: 86.8 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009021/0.000902, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001778/0.001778, allocations: 266.2 kB / 291.3 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9444/0.9444, allocations: 169.5 MB / 0.5 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004085/0.0004086, allocations: 11.56 kB / 0.598 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.149, allocations: 88.54 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit): time 0.03264/0.1817, allocations: 36.08 MB / 0.7197 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00924/0.191, allocations: 7.074 MB / 0.7266 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007739/0.1918, allocations: 35.75 kB / 0.7266 GB, free: 4.172 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0009415/0.1927, allocations: 365.8 kB / 0.727 GB, free: 3.812 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002071/0.1948, allocations: 0.9249 MB / 0.7279 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.1969, allocations: 0.8653 MB / 0.7287 GB, free: 2.027 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002479/0.1994, allocations: 2.517 MB / 0.7312 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007427/0.2002, allocations: 0.5304 MB / 0.7317 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.2013, allocations: 0.731 MB / 0.7324 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006813/0.202, allocations: 0.591 MB / 0.733 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.727e-05/0.202, allocations: 28 kB / 0.733 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001408/0.2035, allocations: 0.7017 MB / 0.7337 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002028/0.2037, allocations: 203.2 kB / 0.7339 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.2039, allocations: 217.1 kB / 0.7341 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.2051, allocations: 1.165 MB / 0.7353 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2051, allocations: 0 / 0.7353 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2051, allocations: 0 / 0.7353 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.06e-05/0.2051, allocations: 4 kB / 0.7353 GB, free: 11.31 MB / 0.5294 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.001742/0.2068, allocations: 1.258 MB / 0.7365 GB, free: 9.992 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.2069, allocations: 12.03 kB / 0.7365 GB, free: 9.98 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002227/0.2071, allocations: 118.6 kB / 0.7366 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/0.2085, allocations: 0.9601 MB / 0.7376 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.94e-05/0.2086, allocations: 40.98 kB / 0.7376 GB, free: 8.82 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.777e-05/0.2087, allocations: 52 kB / 0.7376 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009368/0.2096, allocations: 0.5592 MB / 0.7382 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.2096, allocations: 3.906 kB / 0.7382 GB, free: 8.188 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.665e-05/0.2097, allocations: 20 kB / 0.7382 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/0.2097, allocations: 15.94 kB / 0.7382 GB, free: 8.152 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000815/0.2106, allocations: 439.7 kB / 0.7386 GB, free: 7.723 MB / 0.5294 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.003213/0.2138, allocations: 2.627 MB / 0.7412 GB, free: 4.922 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008113/0.2146, allocations: 445.1 kB / 0.7416 GB, free: 4.465 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003224/0.2149, allocations: 181.3 kB / 0.7418 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007842/0.2157, allocations: 0.8703 MB / 0.7427 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.2158, allocations: 50.7 kB / 0.7427 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=34): time 1.873e-06/0.2158, allocations: 0 / 0.7427 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of matching and sorting (n=34): time 0.001095/0.2169, allocations: 0.5289 MB / 0.7432 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.2169, allocations: 59.41 kB / 0.7433 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/0.2181, allocations: 0.944 MB / 0.7442 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.2182, allocations: 37.7 kB / 0.7442 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003796/0.2186, allocations: 456.1 kB / 0.7447 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.2187, allocations: 122.2 kB / 0.7448 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.06e-05/0.2188, allocations: 4 kB / 0.7448 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.2189, allocations: 330 kB / 0.7451 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003231/0.2192, allocations: 148.8 kB / 0.7452 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003636/0.2196, allocations: 249.6 kB / 0.7455 GB, free: 244 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003435/0.22, allocations: 171.9 kB / 0.7457 GB, free: 72 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.22, allocations: 4 kB / 0.7457 GB, free: 68 kB / 0.5294 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009177/0.2209, allocations: 0.5195 MB / 0.7462 GB, free: 15.54 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.305e-05/0.221, allocations: 145.2 kB / 0.7463 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.221, allocations: 8 kB / 0.7463 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.221, allocations: 4 kB / 0.7463 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003721/0.2214, allocations: 95.83 kB / 0.7464 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.2214, allocations: 4 kB / 0.7464 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005197/0.222, allocations: 83.39 kB / 0.7465 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-05/0.222, allocations: 23.98 kB / 0.7465 GB, free: 15.16 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.94e-06/0.222, allocations: 0 / 0.7465 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007488/0.2228, allocations: 415.7 kB / 0.7469 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.2228, allocations: 4 kB / 0.7469 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.54e-06/0.2228, allocations: 4 kB / 0.7469 GB, free: 14.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003511/0.2232, allocations: 99.88 kB / 0.747 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.2232, allocations: 11.89 kB / 0.747 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000408/0.2236, allocations: 75.61 kB / 0.7471 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.892e-05/0.2237, allocations: 16 kB / 0.7471 GB, free: 14.54 MB / 0.545 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.Technologies.Cogeneration.Examples.CogenerationUnit.CHP.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit.CHP.vol.dynBal.Medium.setState_pTX(CHP.vol.dynBal.p_start, CHP.vol.dynBal.T_start, {})) + (CHP.vol.dynBal.T_start - 273.15) * 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 (51): * Single equations (assignments): 51 * 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.0005486/0.2242, allocations: 389.6 kB / 0.7475 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.2243, allocations: 98.86 kB / 0.7476 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.2255, allocations: 0.6266 MB / 0.7482 GB, free: 13.44 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.2255, allocations: 7.938 kB / 0.7482 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2255, allocations: 7.953 kB / 0.7482 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007854/0.2263, allocations: 0.6476 MB / 0.7488 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.2286, allocations: 1.537 MB / 0.7503 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.2286, allocations: 4 kB / 0.7503 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002931/0.2289, allocations: 71.89 kB / 0.7504 GB, free: 11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.2289, allocations: 4.25 kB / 0.7504 GB, free: 10.99 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.2289, allocations: 19.98 kB / 0.7504 GB, free: 10.97 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/0.2289, allocations: 4 kB / 0.7504 GB, free: 10.97 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.229, allocations: 0 / 0.7504 GB, free: 10.97 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.2302, allocations: 0.8786 MB / 0.7513 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000275/0.2305, allocations: 243.6 kB / 0.7515 GB, free: 9.785 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.856e-05/0.2306, allocations: 8.094 kB / 0.7515 GB, free: 9.777 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004046/0.231, allocations: 47.89 kB / 0.7516 GB, free: 9.73 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.012e-05/0.2311, allocations: 31.95 kB / 0.7516 GB, free: 9.699 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-05/0.2311, allocations: 19.98 kB / 0.7516 GB, free: 9.68 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000828/0.232, allocations: 0.6861 MB / 0.7523 GB, free: 8.984 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.232, allocations: 0 / 0.7523 GB, free: 8.984 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001001/0.233, allocations: 407.3 kB / 0.7527 GB, free: 8.586 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (39): * Single equations (assignments): 33 * 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.001142/0.2341, allocations: 0.5607 MB / 0.7532 GB, free: 8.156 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001096/0.2352, allocations: 0.6215 MB / 0.7538 GB, free: 7.535 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2352, allocations: 0 / 0.7538 GB, free: 7.535 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000363/0.2356, allocations: 223.7 kB / 0.7541 GB, free: 7.316 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001758/0.2374, allocations: 441.5 kB / 0.7545 GB, free: 6.898 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.2398, allocations: 2.107 MB / 0.7565 GB, free: 4.734 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005518/0.2404, allocations: 1.04 MB / 0.7575 GB, free: 3.664 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007387/0.2411, allocations: 256.5 kB / 0.7578 GB, free: 3.418 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.2413, allocations: 87.41 kB / 0.7579 GB, free: 3.332 MB / 0.545 GB Notification: Performance of SimCode: time 3.6e-07/0.2413, allocations: 0 / 0.7579 GB, free: 3.332 MB / 0.545 GB Notification: Performance of Templates: time 0.02508/0.2664, allocations: 16.03 MB / 0.7735 GB, free: 3.559 MB / 0.5606 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)