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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009989/0.000999, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.00788/0.00788, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.346/1.346, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.25/2.25, allocations: 390.9 MB / 0.6664 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002688/0.0002689, allocations: 8 kB / 0.8161 GB, free: 13.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.518/0.5183, allocations: 142.4 MB / 0.9552 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1709/0.6892, allocations: 189.1 MB / 1.14 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.008925/0.6982, allocations: 6.926 MB / 1.147 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.6994, allocations: 39.69 kB / 1.147 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.7008, allocations: 0.5632 MB / 1.147 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.004765/0.7056, allocations: 2.191 MB / 1.149 GB, free: 7.816 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002731/0.7084, allocations: 1.279 MB / 1.151 GB, free: 6.555 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.003886/0.7123, allocations: 3.745 MB / 1.154 GB, free: 2.801 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.7135, allocations: 0.7717 MB / 1.155 GB, free: 2.016 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001947/0.7155, allocations: 0.9568 MB / 1.156 GB, free: 1.055 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.7175, allocations: 0.7861 MB / 1.157 GB, free: 276 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002097/0.7177, allocations: 44 kB / 1.157 GB, free: 232 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003731/0.7214, allocations: 2.221 MB / 1.159 GB, free: 14 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003949/0.7218, allocations: 310.9 kB / 1.159 GB, free: 13.7 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0007891/0.7226, allocations: 0.5534 MB / 1.16 GB, free: 13.13 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003367/0.726, allocations: 2.387 MB / 1.162 GB, free: 10.74 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.726, allocations: 0 / 1.162 GB, free: 10.74 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.423e-06/0.726, allocations: 0 / 1.162 GB, free: 10.74 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.539e-05/0.7261, allocations: 0 / 1.162 GB, free: 10.74 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.003138/0.7292, allocations: 1.391 MB / 1.163 GB, free: 9.289 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.7293, allocations: 8.031 kB / 1.163 GB, free: 9.281 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001968/0.7295, allocations: 114.4 kB / 1.164 GB, free: 9.16 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002885/0.7324, allocations: 0.5996 MB / 1.164 GB, free: 8.559 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001998/0.7344, allocations: 0.9927 MB / 1.165 GB, free: 7.523 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001171/0.7355, allocations: 313.1 kB / 1.165 GB, free: 7.219 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.7357, allocations: 68 kB / 1.165 GB, free: 7.152 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002432/0.7381, allocations: 1.159 MB / 1.167 GB, free: 5.961 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.7382, allocations: 0 / 1.167 GB, free: 5.961 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.449e-05/0.7383, allocations: 31.98 kB / 1.167 GB, free: 5.93 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.448e-05/0.7383, allocations: 33.31 kB / 1.167 GB, free: 5.898 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003131/0.7415, allocations: 1.254 MB / 1.168 GB, free: 4.645 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.005494/0.747, allocations: 3.252 MB / 1.171 GB, free: 1.312 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.7486, allocations: 0.6998 MB / 1.172 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007556/0.7493, allocations: 431.9 kB / 1.172 GB, free: 184 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007946/0.7501, allocations: 1.025 MB / 1.173 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009595/0.7511, allocations: 0.5221 MB / 1.174 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 3.256e-06/0.7511, allocations: 0 / 1.174 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.002749/0.7539, allocations: 1.256 MB / 1.175 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.754, allocations: 132.9 kB / 1.175 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001945/0.7559, allocations: 1.219 MB / 1.176 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 8.691e-05/0.756, allocations: 41.7 kB / 1.176 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000336/0.7564, allocations: 441.4 kB / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.7565, allocations: 197.2 kB / 1.177 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.478e-05/0.7566, allocations: 53.69 kB / 1.177 GB, free: 11 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.747e-05/0.7567, allocations: 330 kB / 1.177 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.758, allocations: 488.9 kB / 1.178 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.7595, allocations: 0.6444 MB / 1.178 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/0.7616, allocations: 0.9809 MB / 1.179 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.7616, allocations: 0 / 1.179 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003198/0.7648, allocations: 1.287 MB / 1.181 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.198e-05/0.7649, allocations: 37.69 kB / 1.181 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.7649, allocations: 4 kB / 1.181 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.7649, allocations: 7.938 kB / 1.181 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009382/0.7659, allocations: 212 kB / 1.181 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.7659, allocations: 8 kB / 1.181 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.7675, allocations: 306.8 kB / 1.181 GB, free: 6.586 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-05/0.7676, allocations: 39.97 kB / 1.181 GB, free: 6.547 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.0005008/0.7681, allocations: 329 kB / 1.181 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002294/0.7684, allocations: 119 kB / 1.182 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002094/0.7705, allocations: 1.011 MB / 1.183 GB, free: 5.07 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.7705, allocations: 7.938 kB / 1.183 GB, free: 5.062 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.7705, allocations: 0 / 1.183 GB, free: 5.062 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.7705, allocations: 12.02 kB / 1.183 GB, free: 5.051 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004546/0.7751, allocations: 3.165 MB / 1.186 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/0.7751, allocations: 8 kB / 1.186 GB, free: 1.723 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005643/0.7757, allocations: 124 kB / 1.186 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.12e-05/0.7757, allocations: 12 kB / 1.186 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.419e-05/0.7758, allocations: 23.98 kB / 1.186 GB, free: 1.566 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.321e-05/0.7758, allocations: 23.86 kB / 1.186 GB, free: 1.543 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.7758, allocations: 11.94 kB / 1.186 GB, free: 1.531 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.7778, allocations: 1.345 MB / 1.187 GB, free: 68 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004751/0.7783, allocations: 331.4 kB / 1.187 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001991/0.7785, allocations: 28 kB / 1.188 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.7796, allocations: 119.9 kB / 1.188 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.581e-05/0.7797, allocations: 67.7 kB / 1.188 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-05/0.7798, allocations: 43.97 kB / 1.188 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001512/0.7813, allocations: 0.8872 MB / 1.189 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7814, allocations: 0 / 1.189 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001002/0.7824, allocations: 299.8 kB / 1.189 GB, free: 14.28 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.003088/0.7855, allocations: 2.146 MB / 1.191 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002455/0.7879, allocations: 1.054 MB / 1.192 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.7879, allocations: 0 / 1.192 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0008925/0.7888, allocations: 0.5204 MB / 1.193 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0037/0.7926, allocations: 0.5264 MB / 1.193 GB, free: 9.914 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01803/0.8106, allocations: 10.43 MB / 1.203 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006681/0.8113, allocations: 1.065 MB / 1.204 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0011/0.8124, allocations: 276 kB / 1.205 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005133/0.8129, allocations: 359.3 kB / 1.205 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of SimCode: time 6.62e-07/0.8129, allocations: 0 / 1.205 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.539/4.352, allocations: 30.33 MB / 1.234 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002776/4.352, allocations: 280 kB / 1.235 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.993/8.345, allocations: 0 / 1.235 GB, free: 14.93 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)