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.001521/0.001521, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001879/0.001879, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.364/1.364, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.213/2.213, allocations: 390.2 MB / 0.6643 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5194/0.5207, allocations: 140.3 MB / 0.949 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1778/0.6985, allocations: 191.7 MB / 1.136 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.009392/0.7079, allocations: 6.989 MB / 1.143 GB, free: 10.76 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001221/0.7092, allocations: 43.62 kB / 1.143 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.7108, allocations: 0.5632 MB / 1.144 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.004692/0.7155, allocations: 2.194 MB / 1.146 GB, free: 7.949 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002684/0.7182, allocations: 1.277 MB / 1.147 GB, free: 6.691 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.003686/0.7219, allocations: 3.746 MB / 1.151 GB, free: 2.934 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001149/0.7231, allocations: 0.7776 MB / 1.151 GB, free: 2.145 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001625/0.7247, allocations: 0.9763 MB / 1.152 GB, free: 1.164 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001479/0.7262, allocations: 0.8139 MB / 1.153 GB, free: 360 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.7263, allocations: 48 kB / 1.153 GB, free: 312 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003274/0.7296, allocations: 2.229 MB / 1.155 GB, free: 14.07 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003102/0.7299, allocations: 314.9 kB / 1.156 GB, free: 13.76 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0004996/0.7304, allocations: 0.5361 MB / 1.156 GB, free: 13.22 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00248/0.7329, allocations: 2.427 MB / 1.159 GB, free: 10.79 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.7329, allocations: 0 / 1.159 GB, free: 10.79 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.092e-06/0.7329, allocations: 0 / 1.159 GB, free: 10.79 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.769e-06/0.7329, allocations: 0 / 1.159 GB, free: 10.79 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.002978/0.7359, allocations: 1.625 MB / 1.16 GB, free: 9.105 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.736, allocations: 16.03 kB / 1.16 GB, free: 9.09 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001375/0.7361, allocations: 114.5 kB / 1.16 GB, free: 8.969 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002793/0.7389, allocations: 0.5293 MB / 1.161 GB, free: 8.438 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001809/0.7407, allocations: 0.9869 MB / 1.162 GB, free: 7.406 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001081/0.7418, allocations: 273.1 kB / 1.162 GB, free: 7.141 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.7419, allocations: 64 kB / 1.162 GB, free: 7.078 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002219/0.7442, allocations: 1.132 MB / 1.163 GB, free: 5.914 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.7442, allocations: 0 / 1.163 GB, free: 5.914 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-05/0.7443, allocations: 31.94 kB / 1.163 GB, free: 5.883 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-05/0.7443, allocations: 29.31 kB / 1.163 GB, free: 5.855 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002979/0.7473, allocations: 1.2 MB / 1.164 GB, free: 4.656 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.005046/0.7524, allocations: 3.209 MB / 1.168 GB, free: 1.363 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.7539, allocations: 0.6857 MB / 1.168 GB, free: 0.668 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007297/0.7546, allocations: 423.6 kB / 1.169 GB, free: 260 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008057/0.7555, allocations: 1.025 MB / 1.17 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009161/0.7564, allocations: 0.5182 MB / 1.17 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=57): time 2.545e-06/0.7564, allocations: 0 / 1.17 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of matching and sorting (n=57): time 0.002654/0.7591, allocations: 1.225 MB / 1.171 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.7591, allocations: 140.9 kB / 1.171 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001729/0.7609, allocations: 1.204 MB / 1.173 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.503e-05/0.761, allocations: 37.7 kB / 1.173 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003292/0.7613, allocations: 437.4 kB / 1.173 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.7615, allocations: 193.2 kB / 1.173 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.7617, allocations: 154 kB / 1.173 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.7618, allocations: 329.9 kB / 1.174 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.763, allocations: 460.9 kB / 1.174 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.7644, allocations: 0.6133 MB / 1.175 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001945/0.7663, allocations: 0.9458 MB / 1.176 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.7664, allocations: 0 / 1.176 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002862/0.7692, allocations: 1.236 MB / 1.177 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/0.7693, allocations: 41.69 kB / 1.177 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.7693, allocations: 4 kB / 1.177 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.7693, allocations: 7.938 kB / 1.177 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009163/0.7702, allocations: 200 kB / 1.177 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.7703, allocations: 7.984 kB / 1.177 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.7717, allocations: 266.9 kB / 1.177 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.058e-05/0.7718, allocations: 39.97 kB / 1.177 GB, free: 6.766 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.000394/0.7722, allocations: 323.3 kB / 1.178 GB, free: 6.434 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.7723, allocations: 114.6 kB / 1.178 GB, free: 6.32 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001916/0.7743, allocations: 1.003 MB / 1.179 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.909e-05/0.7743, allocations: 7.938 kB / 1.179 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.7743, allocations: 3.938 kB / 1.179 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.7743, allocations: 4 kB / 1.179 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00431/0.7786, allocations: 3.157 MB / 1.182 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.7786, allocations: 8 kB / 1.182 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005748/0.7792, allocations: 124.3 kB / 1.182 GB, free: 1.852 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.7792, allocations: 8 kB / 1.182 GB, free: 1.844 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.284e-05/0.7793, allocations: 27.98 kB / 1.182 GB, free: 1.816 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/0.7793, allocations: 11.94 kB / 1.182 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.7793, allocations: 11.94 kB / 1.182 GB, free: 1.793 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.7813, allocations: 1.337 MB / 1.183 GB, free: 348 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004101/0.7817, allocations: 327.4 kB / 1.184 GB, free: 0 / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.7818, allocations: 27.98 kB / 1.184 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.7829, allocations: 119.8 kB / 1.184 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.69e-05/0.783, allocations: 55.77 kB / 1.184 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-05/0.7831, allocations: 43.95 kB / 1.184 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001391/0.7845, allocations: 0.8716 MB / 1.185 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7845, allocations: 0 / 1.185 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0009054/0.7854, allocations: 291.9 kB / 1.185 GB, free: 14.59 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.002895/0.7883, allocations: 2.133 MB / 1.187 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002279/0.7906, allocations: 1.009 MB / 1.188 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.7907, allocations: 4 kB / 1.188 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000884/0.7915, allocations: 0.5125 MB / 1.189 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00267/0.7942, allocations: 0.5261 MB / 1.189 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01726/0.8115, allocations: 10.26 MB / 1.199 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006403/0.8122, allocations: 1.069 MB / 1.2 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001224/0.8134, allocations: 282.8 kB / 1.201 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005742/0.814, allocations: 355.3 kB / 1.201 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of SimCode: time 9.32e-07/0.814, allocations: 0 / 1.201 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.107/2.921, allocations: 30.6 MB / 1.231 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003489/2.921, allocations: 262 kB / 1.231 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.659/5.58, allocations: 0 / 1.231 GB, free: 15.19 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)