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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7247/0.7247, allocations: 141.8 MB / 149 MB, free: 2.703 MB / 114.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 185.2 kB / 181.9 MB, free: 3.613 MB / 146.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.17/1.17, allocations: 221.4 MB / 436 MB, free: 3.672 MB / 338.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009149/0.0009149, allocations: 97.64 kB / 0.507 GB, free: 1.715 MB / 386.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00177/0.00177, allocations: 274.1 kB / 0.5884 GB, free: 14.32 MB / 482.9 MB Notification: Performance of FrontEnd - loaded program: time 0.264/0.2658, allocations: 89.64 MB / 0.676 GB, free: 138.3 MB / 498.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.393, allocations: 82.77 MB / 0.7568 GB, free: 55.9 MB / 498.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7993/1.192, allocations: 380.6 MB / 1.129 GB, free: 231.3 MB / 0.6903 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/1.193, allocations: 84.59 kB / 1.129 GB, free: 231.2 MB / 0.6903 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.7565/1.949, allocations: 315.7 MB / 1.437 GB, free: 162.3 MB / 0.6903 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/1.949, allocations: 16.19 kB / 1.437 GB, free: 162.3 MB / 0.6903 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004342/1.95, allocations: 117.8 kB / 1.437 GB, free: 162.2 MB / 0.6903 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/1.952, allocations: 1.07 MB / 1.438 GB, free: 161.7 MB / 0.6903 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.291e-05/1.952, allocations: 21.19 kB / 1.438 GB, free: 161.7 MB / 0.6903 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.464e-05/1.952, allocations: 30 kB / 1.438 GB, free: 161.7 MB / 0.6903 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006754/1.953, allocations: 359.9 kB / 1.438 GB, free: 161.6 MB / 0.6903 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007463/1.953, allocations: 465.6 kB / 1.439 GB, free: 161.3 MB / 0.6903 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/1.953, allocations: 6.969 kB / 1.439 GB, free: 161.3 MB / 0.6903 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.468e-05/1.953, allocations: 1.281 kB / 1.439 GB, free: 161.3 MB / 0.6903 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.386e-05/1.953, allocations: 16.36 kB / 1.439 GB, free: 161.3 MB / 0.6903 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003995/1.957, allocations: 2.809 MB / 1.442 GB, free: 159.5 MB / 0.6903 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007145/1.958, allocations: 316.5 kB / 1.442 GB, free: 159.4 MB / 0.6903 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/1.958, allocations: 150.2 kB / 1.442 GB, free: 159.4 MB / 0.6903 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006707/1.959, allocations: 0.8553 MB / 1.443 GB, free: 158.4 MB / 0.6903 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/1.959, allocations: 40.44 kB / 1.443 GB, free: 158.4 MB / 0.6903 GB Notification: Performance of pre-optimization done (n=32): time 1.723e-06/1.959, allocations: 0 / 1.443 GB, free: 158.4 MB / 0.6903 GB Notification: Performance of matching and sorting (n=32): time 0.001167/1.96, allocations: 434.9 kB / 1.443 GB, free: 158.2 MB / 0.6903 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.531e-05/1.96, allocations: 54.94 kB / 1.443 GB, free: 158.1 MB / 0.6903 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/1.962, allocations: 0.8831 MB / 1.444 GB, free: 157.8 MB / 0.6903 GB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/1.962, allocations: 29.92 kB / 1.444 GB, free: 157.7 MB / 0.6903 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/1.962, allocations: 303.7 kB / 1.445 GB, free: 157.5 MB / 0.6903 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/1.962, allocations: 111.6 kB / 1.445 GB, free: 157.4 MB / 0.6903 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.823e-05/1.962, allocations: 1.406 kB / 1.445 GB, free: 157.4 MB / 0.6903 GB Notification: Performance of setup shared object (initialization): time 6.634e-05/1.962, allocations: 320.7 kB / 1.445 GB, free: 157.1 MB / 0.6903 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/1.962, allocations: 125.5 kB / 1.445 GB, free: 157.1 MB / 0.6903 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002695/1.963, allocations: 223.6 kB / 1.445 GB, free: 156.9 MB / 0.6903 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006977/1.963, allocations: 239.5 kB / 1.446 GB, free: 156.8 MB / 0.6903 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/1.963, allocations: 1.219 kB / 1.446 GB, free: 156.8 MB / 0.6903 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001212/1.965, allocations: 0.513 MB / 1.446 GB, free: 156.7 MB / 0.6903 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/1.965, allocations: 0.7075 MB / 1.447 GB, free: 155.9 MB / 0.6903 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/1.965, allocations: 1.156 kB / 1.447 GB, free: 155.9 MB / 0.6903 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/1.965, allocations: 8.031 kB / 1.447 GB, free: 155.9 MB / 0.6903 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003926/1.965, allocations: 97.44 kB / 1.447 GB, free: 155.9 MB / 0.6903 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/1.965, allocations: 5.562 kB / 1.447 GB, free: 155.9 MB / 0.6903 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005192/1.966, allocations: 55.23 kB / 1.447 GB, free: 155.9 MB / 0.6903 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.564e-05/1.966, allocations: 18.98 kB / 1.447 GB, free: 155.9 MB / 0.6903 GB Notification: Performance of prepare postOptimizeDAE: time 8.245e-06/1.966, allocations: 3.125 kB / 1.447 GB, free: 155.9 MB / 0.6903 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009377/1.967, allocations: 411.6 kB / 1.447 GB, free: 155.8 MB / 0.6903 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/1.967, allocations: 2.281 kB / 1.447 GB, free: 155.8 MB / 0.6903 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.462e-06/1.967, allocations: 3.625 kB / 1.447 GB, free: 155.8 MB / 0.6903 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/1.967, allocations: 99.64 kB / 1.448 GB, free: 155.8 MB / 0.6903 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/1.967, allocations: 4.156 kB / 1.448 GB, free: 155.8 MB / 0.6903 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/1.968, allocations: 49.66 kB / 1.448 GB, free: 155.8 MB / 0.6903 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.522e-05/1.968, allocations: 25.61 kB / 1.448 GB, free: 155.8 MB / 0.6903 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.0001647/1.968, allocations: 146.7 kB / 1.448 GB, free: 155.6 MB / 0.6903 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/1.968, allocations: 89.22 kB / 1.448 GB, free: 155.6 MB / 0.6903 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/1.969, allocations: 0.6356 MB / 1.448 GB, free: 155.4 MB / 0.6903 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/1.969, allocations: 6.219 kB / 1.448 GB, free: 155.4 MB / 0.6903 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/1.969, allocations: 0 / 1.448 GB, free: 155.4 MB / 0.6903 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009164/1.97, allocations: 0.6641 MB / 1.449 GB, free: 154.9 MB / 0.6903 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002679/1.973, allocations: 1.521 MB / 1.451 GB, free: 154.1 MB / 0.6903 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/1.973, allocations: 2.125 kB / 1.451 GB, free: 154.1 MB / 0.6903 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003364/1.973, allocations: 76.94 kB / 1.451 GB, free: 154.1 MB / 0.6903 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.024e-06/1.973, allocations: 3.938 kB / 1.451 GB, free: 154.1 MB / 0.6903 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/1.973, allocations: 5.844 kB / 1.451 GB, free: 154.1 MB / 0.6903 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/1.973, allocations: 4.391 kB / 1.451 GB, free: 154.1 MB / 0.6903 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.973, allocations: 5.562 kB / 1.451 GB, free: 154.1 MB / 0.6903 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001413/1.975, allocations: 0.9346 MB / 1.452 GB, free: 153.6 MB / 0.6903 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00198/1.977, allocations: 1.574 MB / 1.453 GB, free: 152.5 MB / 0.6903 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/1.977, allocations: 264 kB / 1.453 GB, free: 152.3 MB / 0.6903 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/1.977, allocations: 2.656 kB / 1.453 GB, free: 152.3 MB / 0.6903 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004428/1.978, allocations: 26.12 kB / 1.453 GB, free: 152.3 MB / 0.6903 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/1.978, allocations: 33.23 kB / 1.453 GB, free: 152.3 MB / 0.6903 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.697e-05/1.978, allocations: 15.92 kB / 1.453 GB, free: 152.3 MB / 0.6903 GB Notification: Performance of sort global known variables: time 0.001036/1.979, allocations: 0.6852 MB / 1.454 GB, free: 152 MB / 0.6903 GB Notification: Performance of remove unused functions: time 0.002819/1.982, allocations: 0.6236 MB / 1.455 GB, free: 151.7 MB / 0.6903 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.001256/1.983, allocations: 0.6852 MB / 1.455 GB, free: 151.6 MB / 0.6903 GB Notification: Performance of simCode: created initialization part: time 0.0007814/1.984, allocations: 0.5608 MB / 1.456 GB, free: 151.4 MB / 0.6903 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.984, allocations: 3.938 kB / 1.456 GB, free: 151.4 MB / 0.6903 GB Notification: Performance of simCode: created simulation system equations: time 0.0002733/1.984, allocations: 204.4 kB / 1.456 GB, free: 151.3 MB / 0.6903 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/1.986, allocations: 319.2 kB / 1.456 GB, free: 151.2 MB / 0.6903 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/1.988, allocations: 1.42 MB / 1.458 GB, free: 150.7 MB / 0.6903 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007998/1.989, allocations: 1.143 MB / 1.459 GB, free: 150 MB / 0.6903 GB Notification: Performance of SimCode: time 2.81e-07/1.989, allocations: 3.062 kB / 1.459 GB, free: 150 MB / 0.6903 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)