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.0008056/0.0008057, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.005218/0.005218, allocations: 172.2 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001702/0.001702, allocations: 278.1 kB / 291.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9258/0.9258, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000423/0.0004231, allocations: 10.84 kB / 0.5986 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1511, allocations: 88.55 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Cogeneration.Examples.CogenerationUnit): time 0.03502/0.1861, allocations: 38.12 MB / 0.7223 GB, free: 8.848 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01021/0.1964, allocations: 7.521 MB / 0.7297 GB, free: 1.305 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.1975, allocations: 39.75 kB / 0.7297 GB, free: 1.266 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.1987, allocations: 397.9 kB / 0.7301 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002724/0.2014, allocations: 1.077 MB / 0.7312 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002412/0.2039, allocations: 1.014 MB / 0.7322 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002867/0.2067, allocations: 2.926 MB / 0.735 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007983/0.2075, allocations: 0.5846 MB / 0.7356 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001236/0.2088, allocations: 0.7543 MB / 0.7363 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000695/0.2095, allocations: 0.6221 MB / 0.7369 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.742e-05/0.2096, allocations: 28 kB / 0.737 GB, free: 9.848 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001619/0.2112, allocations: 0.8887 MB / 0.7378 GB, free: 8.957 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002062/0.2114, allocations: 211 kB / 0.738 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004228/0.2119, allocations: 490.9 kB / 0.7385 GB, free: 8.262 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001761/0.2136, allocations: 1.592 MB / 0.74 GB, free: 6.664 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2136, allocations: 0 / 0.74 GB, free: 6.664 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2136, allocations: 0 / 0.74 GB, free: 6.664 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.124e-05/0.2137, allocations: 0 / 0.74 GB, free: 6.664 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.001812/0.2155, allocations: 1.239 MB / 0.7413 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.2155, allocations: 15.95 kB / 0.7413 GB, free: 5.352 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002308/0.2158, allocations: 127.5 kB / 0.7414 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.2172, allocations: 0.9988 MB / 0.7424 GB, free: 4.184 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/0.2173, allocations: 44.94 kB / 0.7424 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.627e-05/0.2174, allocations: 48 kB / 0.7425 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009462/0.2183, allocations: 0.567 MB / 0.743 GB, free: 3.508 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.2183, allocations: 0 / 0.743 GB, free: 3.508 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.004e-05/0.2184, allocations: 20 kB / 0.743 GB, free: 3.488 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.296e-05/0.2184, allocations: 19.98 kB / 0.743 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008203/0.2193, allocations: 435.7 kB / 0.7435 GB, free: 3.043 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.003227/0.2225, allocations: 2.635 MB / 0.746 GB, free: 240 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008019/0.2233, allocations: 441.4 kB / 0.7465 GB, free: 15.78 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.2236, allocations: 177.3 kB / 0.7466 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008183/0.2245, allocations: 0.8703 MB / 0.7475 GB, free: 14.55 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.2245, allocations: 34.84 kB / 0.7475 GB, free: 14.5 MB / 0.545 GB Notification: Performance of pre-optimization done (n=34): time 3.788e-06/0.2245, allocations: 4 kB / 0.7475 GB, free: 14.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=34): time 0.001126/0.2256, allocations: 0.5491 MB / 0.748 GB, free: 13.95 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.2257, allocations: 55.41 kB / 0.7481 GB, free: 13.88 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.2268, allocations: 0.9557 MB / 0.749 GB, free: 12.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.2269, allocations: 37.7 kB / 0.7491 GB, free: 12.86 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003282/0.2272, allocations: 456.1 kB / 0.7495 GB, free: 12.41 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.132e-05/0.2273, allocations: 118.3 kB / 0.7496 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.745e-05/0.2274, allocations: 41.69 kB / 0.7497 GB, free: 12.25 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.033e-05/0.2275, allocations: 322 kB / 0.75 GB, free: 11.93 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003019/0.2278, allocations: 156.8 kB / 0.7501 GB, free: 11.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003533/0.2282, allocations: 241.7 kB / 0.7503 GB, free: 11.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007333/0.2355, allocations: 1.626 MB / 0.7519 GB, free: 9.852 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2355, allocations: 0 / 0.7519 GB, free: 9.852 MB / 0.545 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009462/0.2365, allocations: 0.5351 MB / 0.7525 GB, free: 9.309 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.124e-05/0.2366, allocations: 147.3 kB / 0.7526 GB, free: 9.137 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2366, allocations: 0 / 0.7526 GB, free: 9.137 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.2366, allocations: 4 kB / 0.7526 GB, free: 9.133 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003659/0.237, allocations: 103.8 kB / 0.7527 GB, free: 9.031 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.237, allocations: 7.984 kB / 0.7527 GB, free: 9.023 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.2375, allocations: 78.88 kB / 0.7528 GB, free: 8.949 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.2375, allocations: 19.98 kB / 0.7528 GB, free: 8.93 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.902e-06/0.2376, allocations: 4 kB / 0.7528 GB, free: 8.926 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007743/0.2383, allocations: 419.7 kB / 0.7532 GB, free: 8.516 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-06/0.2383, allocations: 0 / 0.7532 GB, free: 8.516 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.35e-06/0.2384, allocations: 4 kB / 0.7532 GB, free: 8.512 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003396/0.2387, allocations: 103.8 kB / 0.7533 GB, free: 8.41 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.2387, allocations: 11.88 kB / 0.7533 GB, free: 8.398 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000442/0.2392, allocations: 79.58 kB / 0.7534 GB, free: 8.32 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.351e-05/0.2392, allocations: 16 kB / 0.7534 GB, free: 8.305 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004886/0.2397, allocations: 386.3 kB / 0.7538 GB, free: 7.922 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.2398, allocations: 102.8 kB / 0.7539 GB, free: 7.82 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.241, allocations: 0.6146 MB / 0.7545 GB, free: 7.207 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.241, allocations: 11.94 kB / 0.7545 GB, free: 7.195 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.241, allocations: 7.938 kB / 0.7545 GB, free: 7.188 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007758/0.2418, allocations: 0.6559 MB / 0.7551 GB, free: 6.465 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002256/0.244, allocations: 1.545 MB / 0.7566 GB, free: 4.82 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.2441, allocations: 4 kB / 0.7566 GB, free: 4.816 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000302/0.2444, allocations: 71.91 kB / 0.7567 GB, free: 4.746 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.2444, allocations: 7.984 kB / 0.7567 GB, free: 4.738 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.2444, allocations: 11.98 kB / 0.7567 GB, free: 4.727 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.2444, allocations: 4 kB / 0.7567 GB, free: 4.723 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.2444, allocations: 8.25 kB / 0.7567 GB, free: 4.715 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/0.2457, allocations: 0.8706 MB / 0.7576 GB, free: 3.805 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002869/0.246, allocations: 247.7 kB / 0.7578 GB, free: 3.543 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.724e-05/0.2461, allocations: 15.98 kB / 0.7578 GB, free: 3.527 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004261/0.2465, allocations: 35.88 kB / 0.7579 GB, free: 3.492 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.497e-05/0.2466, allocations: 43.83 kB / 0.7579 GB, free: 3.449 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.2467, allocations: 16 kB / 0.7579 GB, free: 3.434 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008237/0.2475, allocations: 0.6861 MB / 0.7586 GB, free: 2.738 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2475, allocations: 0 / 0.7586 GB, free: 2.738 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001028/0.2485, allocations: 415.3 kB / 0.759 GB, free: 2.332 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001173/0.2497, allocations: 0.5726 MB / 0.7596 GB, free: 1.891 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001135/0.2509, allocations: 0.633 MB / 0.7602 GB, free: 1.258 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.2509, allocations: 4 kB / 0.7602 GB, free: 1.254 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003742/0.2512, allocations: 223.7 kB / 0.7604 GB, free: 1.035 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002371/0.2536, allocations: 448.3 kB / 0.7608 GB, free: 0.6055 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/0.2564, allocations: 2.106 MB / 0.7629 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.257, allocations: 1.044 MB / 0.7639 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0007738/0.2577, allocations: 253.3 kB / 0.7641 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.2579, allocations: 95.34 kB / 0.7642 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of SimCode: time 3e-07/0.2579, allocations: 0 / 0.7642 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of Templates: time 0.2849/0.5429, allocations: 16.65 MB / 0.7805 GB, free: 87.71 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)