Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001364/0.001364, allocations: 190.6 kB / 16.25 MB, free: 6.633 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.397/1.397, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.296/2.296, allocations: 390.2 MB / 0.6644 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 63.91 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5512/0.5526, allocations: 140.4 MB / 0.9492 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.181/0.7336, allocations: 191.5 MB / 1.136 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.009755/0.7434, allocations: 6.894 MB / 1.143 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.7447, allocations: 39.69 kB / 1.143 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.7464, allocations: 0.5906 MB / 1.144 GB, free: 10.33 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.004924/0.7513, allocations: 2.206 MB / 1.146 GB, free: 8.113 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002729/0.7541, allocations: 1.304 MB / 1.147 GB, free: 6.828 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.003272/0.7574, allocations: 3.008 MB / 1.15 GB, free: 3.812 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.7584, allocations: 0.8996 MB / 1.151 GB, free: 2.902 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001945/0.7604, allocations: 1.164 MB / 1.152 GB, free: 1.738 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001111/0.7615, allocations: 0.8437 MB / 1.153 GB, free: 0.8984 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.7616, allocations: 96 kB / 1.153 GB, free: 0.8047 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002839/0.7645, allocations: 2.147 MB / 1.155 GB, free: 14.65 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000309/0.7648, allocations: 362.9 kB / 1.155 GB, free: 14.3 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0004854/0.7653, allocations: 0.5908 MB / 1.156 GB, free: 13.7 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00241/0.7677, allocations: 2.462 MB / 1.158 GB, free: 11.23 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.7677, allocations: 0 / 1.158 GB, free: 11.23 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.223e-06/0.7677, allocations: 3.938 kB / 1.158 GB, free: 11.23 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.152e-05/0.7678, allocations: 0 / 1.158 GB, free: 11.23 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002902/0.7707, allocations: 1.629 MB / 1.16 GB, free: 9.539 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.7707, allocations: 12.03 kB / 1.16 GB, free: 9.527 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001254/0.7708, allocations: 118.5 kB / 1.16 GB, free: 9.402 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002691/0.7735, allocations: 0.5254 MB / 1.161 GB, free: 8.875 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00179/0.7753, allocations: 0.983 MB / 1.161 GB, free: 7.852 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001054/0.7764, allocations: 281 kB / 1.162 GB, free: 7.578 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.7765, allocations: 68 kB / 1.162 GB, free: 7.512 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.7788, allocations: 1.124 MB / 1.163 GB, free: 6.355 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.7788, allocations: 0 / 1.163 GB, free: 6.355 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.069e-05/0.7789, allocations: 28 kB / 1.163 GB, free: 6.328 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.493e-05/0.7789, allocations: 33.3 kB / 1.163 GB, free: 6.293 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002905/0.7818, allocations: 1.207 MB / 1.164 GB, free: 5.086 MB / 0.92 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.005062/0.7869, allocations: 3.205 MB / 1.167 GB, free: 1.805 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.7884, allocations: 0.6841 MB / 1.168 GB, free: 1.109 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007354/0.7892, allocations: 422.2 kB / 1.168 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008415/0.79, allocations: 1.025 MB / 1.169 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009461/0.791, allocations: 0.5143 MB / 1.17 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 2.515e-06/0.791, allocations: 3.938 kB / 1.17 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.002787/0.7938, allocations: 1.22 MB / 1.171 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.268e-05/0.7939, allocations: 144.8 kB / 1.171 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.7957, allocations: 1.204 MB / 1.172 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.54e-05/0.7957, allocations: 37.7 kB / 1.172 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003269/0.7961, allocations: 437.4 kB / 1.173 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/0.7962, allocations: 193.2 kB / 1.173 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002477/0.7965, allocations: 146.1 kB / 1.173 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.7966, allocations: 326 kB / 1.173 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.7978, allocations: 464.9 kB / 1.174 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/0.7992, allocations: 0.6171 MB / 1.175 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001948/0.8011, allocations: 0.9418 MB / 1.175 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.8012, allocations: 3.938 kB / 1.175 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002885/0.8041, allocations: 1.24 MB / 1.177 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.459e-05/0.8041, allocations: 37.7 kB / 1.177 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.8041, allocations: 4 kB / 1.177 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.8041, allocations: 11.92 kB / 1.177 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009428/0.8051, allocations: 200 kB / 1.177 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.8051, allocations: 4 kB / 1.177 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.8066, allocations: 270.9 kB / 1.177 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.793e-05/0.8066, allocations: 35.98 kB / 1.177 GB, free: 7.211 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * 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.0003956/0.8071, allocations: 331.3 kB / 1.177 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.8072, allocations: 114.6 kB / 1.178 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.8092, allocations: 0.9922 MB / 1.179 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.8092, allocations: 16.45 kB / 1.179 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.8092, allocations: 0 / 1.179 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.8092, allocations: 7.984 kB / 1.179 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004343/0.8136, allocations: 3.161 MB / 1.182 GB, free: 2.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.8136, allocations: 8 kB / 1.182 GB, free: 2.402 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005501/0.8141, allocations: 132.2 kB / 1.182 GB, free: 2.273 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.8141, allocations: 8 kB / 1.182 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.321e-05/0.8142, allocations: 24 kB / 1.182 GB, free: 2.242 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.775e-05/0.8142, allocations: 15.92 kB / 1.182 GB, free: 2.227 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.8142, allocations: 8 kB / 1.182 GB, free: 2.219 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.8162, allocations: 1.334 MB / 1.183 GB, free: 0.7734 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003987/0.8166, allocations: 331.4 kB / 1.183 GB, free: 440 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.8167, allocations: 24 kB / 1.184 GB, free: 416 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.8178, allocations: 119.8 kB / 1.184 GB, free: 296 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.95e-05/0.8179, allocations: 59.7 kB / 1.184 GB, free: 236 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.686e-05/0.818, allocations: 35.97 kB / 1.184 GB, free: 200 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001354/0.8193, allocations: 0.8755 MB / 1.185 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8193, allocations: 0 / 1.185 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0009022/0.8202, allocations: 291.9 kB / 1.185 GB, free: 15.03 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002687/0.8229, allocations: 2.134 MB / 1.187 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002233/0.8252, allocations: 1.048 MB / 1.188 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.8252, allocations: 0 / 1.188 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000853/0.826, allocations: 0.5102 MB / 1.188 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/0.8284, allocations: 0.558 MB / 1.189 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/0.8448, allocations: 10.25 MB / 1.199 GB, free: 15.86 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005746/0.8454, allocations: 1.069 MB / 1.2 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001055/0.8465, allocations: 278.7 kB / 1.2 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004796/0.847, allocations: 359.2 kB / 1.201 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of SimCode: time 6.31e-07/0.847, allocations: 0 / 1.201 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2839/1.131, allocations: 31.34 MB / 1.231 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/1.131, allocations: 268.8 kB / 1.232 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.585/3.716, allocations: 0 / 1.232 GB, free: 14.85 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)