Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_FlowJunction",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.001176/0.001176, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001419/0.001419, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.455/2.455, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003131/0.0003131, allocations: 8 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6665/0.6668, allocations: 142.3 MB / 0.9536 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.219/0.8859, allocations: 196.6 MB / 1.146 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01322/0.8991, allocations: 7.25 MB / 1.153 GB, free: 3.852 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001773/0.901, allocations: 39.69 kB / 1.153 GB, free: 3.812 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002436/0.9034, allocations: 0.6649 MB / 1.153 GB, free: 3.145 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006831/0.9103, allocations: 1.944 MB / 1.155 GB, free: 1.195 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005084/0.9154, allocations: 1.611 MB / 1.157 GB, free: 15.6 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.004166/0.9195, allocations: 1.877 MB / 1.159 GB, free: 13.72 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001458/0.921, allocations: 0.8278 MB / 1.159 GB, free: 12.88 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004147/0.9252, allocations: 1.417 MB / 1.161 GB, free: 11.46 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00139/0.9266, allocations: 0.6186 MB / 1.161 GB, free: 10.84 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.9268, allocations: 48 kB / 1.161 GB, free: 10.79 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003021/0.9298, allocations: 1.057 MB / 1.163 GB, free: 9.73 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0004644/0.9303, allocations: 351 kB / 1.163 GB, free: 9.387 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0004683/0.9308, allocations: 289 kB / 1.163 GB, free: 9.098 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002168/0.933, allocations: 1.613 MB / 1.165 GB, free: 7.48 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.933, allocations: 8 kB / 1.165 GB, free: 7.473 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.242e-06/0.933, allocations: 0 / 1.165 GB, free: 7.473 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.589e-05/0.933, allocations: 0 / 1.165 GB, free: 7.473 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.002539/0.9355, allocations: 1.434 MB / 1.166 GB, free: 5.988 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.9356, allocations: 8.031 kB / 1.166 GB, free: 5.98 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001835/0.9358, allocations: 122.8 kB / 1.166 GB, free: 5.852 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002731/0.9385, allocations: 449.9 kB / 1.167 GB, free: 5.41 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/0.9403, allocations: 0.914 MB / 1.168 GB, free: 4.453 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.905e-05/0.9403, allocations: 61.98 kB / 1.168 GB, free: 4.391 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.9405, allocations: 87.98 kB / 1.168 GB, free: 4.305 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.942, allocations: 0.8663 MB / 1.169 GB, free: 3.434 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.942, allocations: 0 / 1.169 GB, free: 3.434 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.712e-05/0.9421, allocations: 31.95 kB / 1.169 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.796e-05/0.9421, allocations: 33.94 kB / 1.169 GB, free: 3.371 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.9436, allocations: 0.8237 MB / 1.169 GB, free: 2.543 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.004941/0.9486, allocations: 3.639 MB / 1.173 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.9502, allocations: 1.134 MB / 1.174 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004325/0.9506, allocations: 145.6 kB / 1.174 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.9507, allocations: 43.12 kB / 1.174 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=60): time 2.454e-06/0.9507, allocations: 0 / 1.174 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of matching and sorting (n=60): time 0.002115/0.9528, allocations: 0.9818 MB / 1.175 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.9528, allocations: 67.91 kB / 1.175 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.9539, allocations: 0.8321 MB / 1.176 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.244e-05/0.9539, allocations: 37.7 kB / 1.176 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003749/0.9543, allocations: 480.1 kB / 1.177 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.9545, allocations: 212.9 kB / 1.177 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.9546, allocations: 12 kB / 1.177 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.9547, allocations: 322 kB / 1.177 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000483/0.9552, allocations: 257 kB / 1.177 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005665/0.9558, allocations: 371.5 kB / 1.178 GB, free: 9.527 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005309/0.9563, allocations: 302 kB / 1.178 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.9563, allocations: 4 kB / 1.178 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001298/0.9576, allocations: 0.7437 MB / 1.179 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001858/0.9578, allocations: 455.3 kB / 1.179 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.9579, allocations: 8 kB / 1.179 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.9579, allocations: 4 kB / 1.179 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000586/0.9585, allocations: 127.8 kB / 1.179 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.9585, allocations: 4 kB / 1.179 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000967/0.9595, allocations: 139.3 kB / 1.179 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-05/0.9595, allocations: 20 kB / 1.179 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.308e-06/0.9595, allocations: 4 kB / 1.179 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001129/0.9607, allocations: 0.63 MB / 1.18 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-06/0.9607, allocations: 0 / 1.18 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.603e-06/0.9607, allocations: 4 kB / 1.18 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005315/0.9612, allocations: 123.9 kB / 1.18 GB, free: 6.941 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.9613, allocations: 7.938 kB / 1.18 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009003/0.9622, allocations: 131.5 kB / 1.18 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.9622, allocations: 23.98 kB / 1.18 GB, free: 6.781 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (69): * Single equations (assignments): 69 * 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.000559/0.9628, allocations: 385 kB / 1.181 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.963, allocations: 98.78 kB / 1.181 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.9644, allocations: 0.7703 MB / 1.182 GB, free: 5.52 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.9644, allocations: 8 kB / 1.182 GB, free: 5.512 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.9644, allocations: 0 / 1.182 GB, free: 5.512 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001169/0.9656, allocations: 0.9229 MB / 1.182 GB, free: 4.504 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003495/0.9691, allocations: 2.271 MB / 1.185 GB, free: 2.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.9691, allocations: 0 / 1.185 GB, free: 2.09 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006599/0.9698, allocations: 144 kB / 1.185 GB, free: 1.949 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.581e-05/0.9698, allocations: 7.938 kB / 1.185 GB, free: 1.941 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.9698, allocations: 16 kB / 1.185 GB, free: 1.926 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.999e-06/0.9699, allocations: 12.28 kB / 1.185 GB, free: 1.914 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.9699, allocations: 8 kB / 1.185 GB, free: 1.906 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.9719, allocations: 1.406 MB / 1.186 GB, free: 376 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000556/0.9725, allocations: 259.6 kB / 1.186 GB, free: 96 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.9726, allocations: 19.98 kB / 1.186 GB, free: 76 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008107/0.9735, allocations: 101.5 kB / 1.187 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.9736, allocations: 48.28 kB / 1.187 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.611e-05/0.9736, allocations: 27.98 kB / 1.187 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0008265/0.9745, allocations: 0.5784 MB / 1.187 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9745, allocations: 0 / 1.187 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001258/0.9757, allocations: 0.5299 MB / 1.188 GB, free: 14.78 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.medium.Xi[1],spl.vol.dynBal.U,spl.vol.dynBal.m,senTem1.T,senTem2.T,senTem3.T) * 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 (60): * Single equations (assignments): 60 * 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 Backend phase and start with SimCode phase: time 0.002942/0.9787, allocations: 2.989 MB / 1.191 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001831/0.9805, allocations: 0.9627 MB / 1.192 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/0.9806, allocations: 0 / 1.192 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0005905/0.9812, allocations: 355.1 kB / 1.192 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/0.9842, allocations: 0.6059 MB / 1.193 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.995, allocations: 6.831 MB / 1.199 GB, free: 2.684 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007279/0.9958, allocations: 1.147 MB / 1.2 GB, free: 1.504 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001188/0.997, allocations: 296.1 kB / 1.201 GB, free: 1.211 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005376/0.9975, allocations: 411.3 kB / 1.201 GB, free: 0.8125 MB / 0.9512 GB Notification: Performance of SimCode: time 8.22e-07/0.9976, allocations: 0 / 1.201 GB, free: 0.8125 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04667/1.044, allocations: 28.81 MB / 1.229 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/1.044, allocations: 217.8 kB / 1.229 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.363/3.408, allocations: 0 / 1.229 GB, free: 4.207 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FixedResistances_Examples_FlowJunction_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_FixedResistances_Examples_FlowJunction.fmu > Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat does not exist to compare? outputFormat=mat