Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.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.HeatExchangers.Examples.WaterCooler_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T",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.001033/0.001033, allocations: 97.95 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.00719/0.00719, allocations: 170.7 kB / 16.27 MB, free: 6.648 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.285/1.285, allocations: 223.3 MB / 240.3 MB, free: 5.371 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.222/2.222, allocations: 390.9 MB / 0.6664 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002953, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5338/0.5341, allocations: 142.4 MB / 0.9552 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T): time 0.04874/0.5829, allocations: 51.91 MB / 1.006 GB, free: 11.3 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02142/0.6043, allocations: 15.12 MB / 1.021 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002613/0.607, allocations: 79.5 kB / 1.021 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002919/0.6099, allocations: 0.9485 MB / 1.022 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006027/0.6159, allocations: 2.155 MB / 1.024 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005218/0.6212, allocations: 2.003 MB / 1.026 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.006917/0.6281, allocations: 6.015 MB / 1.032 GB, free: 0.9414 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002452/0.6306, allocations: 1.35 MB / 1.033 GB, free: 15.56 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003267/0.6338, allocations: 1.618 MB / 1.034 GB, free: 13.93 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002142/0.636, allocations: 1.299 MB / 1.036 GB, free: 12.63 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0003418/0.6364, allocations: 68 kB / 1.036 GB, free: 12.56 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003476/0.6398, allocations: 1.711 MB / 1.037 GB, free: 10.85 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0006068/0.6405, allocations: 422.2 kB / 1.038 GB, free: 10.43 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001311/0.6418, allocations: 0.9377 MB / 1.039 GB, free: 9.484 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004327/0.6461, allocations: 3.162 MB / 1.042 GB, free: 6.312 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.6461, allocations: 4 kB / 1.042 GB, free: 6.309 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6462, allocations: 0 / 1.042 GB, free: 6.309 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.95e-05/0.6462, allocations: 4 kB / 1.042 GB, free: 6.305 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.004201/0.6504, allocations: 2.163 MB / 1.044 GB, free: 4.074 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.6505, allocations: 8.031 kB / 1.044 GB, free: 4.066 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00029/0.6508, allocations: 169.2 kB / 1.044 GB, free: 3.891 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002763/0.6536, allocations: 0.5676 MB / 1.045 GB, free: 3.32 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003355/0.6569, allocations: 1.682 MB / 1.046 GB, free: 1.586 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003987/0.6573, allocations: 166.3 kB / 1.047 GB, free: 1.422 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.6576, allocations: 120 kB / 1.047 GB, free: 1.305 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002736/0.6603, allocations: 1.393 MB / 1.048 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.6603, allocations: 3.938 kB / 1.048 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/0.6605, allocations: 55.92 kB / 1.048 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.216e-05/0.6605, allocations: 42.06 kB / 1.048 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002904/0.6634, allocations: 1.175 MB / 1.049 GB, free: 14.54 MB / 0.8106 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.009109/0.6725, allocations: 7.056 MB / 1.056 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00267/0.6752, allocations: 1.462 MB / 1.058 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.6763, allocations: 470.9 kB / 1.058 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005261/0.6816, allocations: 3.188 MB / 1.061 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/0.6828, allocations: 490.8 kB / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004291/0.6832, allocations: 87.25 kB / 1.062 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=61): time 2.364e-06/0.6832, allocations: 0 / 1.062 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of matching and sorting (n=61): time 0.003368/0.6866, allocations: 1.334 MB / 1.063 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.6867, allocations: 67.95 kB / 1.063 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/0.6886, allocations: 1.509 MB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.911e-05/0.6887, allocations: 41.7 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006902/0.6894, allocations: 0.8878 MB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001865/0.6896, allocations: 220.9 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.6897, allocations: 89.67 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.6899, allocations: 341.9 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.6909, allocations: 413.7 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/0.6922, allocations: 0.8022 MB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002196/0.6944, allocations: 1.195 MB / 1.068 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.6944, allocations: 8.031 kB / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002893/0.6973, allocations: 1.387 MB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.00028/0.6976, allocations: 443.7 kB / 1.07 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.6977, allocations: 8 kB / 1.07 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.6977, allocations: 16 kB / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.6987, allocations: 279.6 kB / 1.07 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.397e-05/0.6988, allocations: 23.92 kB / 1.07 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.7, allocations: 132.5 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.051e-05/0.7001, allocations: 51.98 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.328e-06/0.7001, allocations: 7.938 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002589/0.7027, allocations: 1.184 MB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.7027, allocations: 8 kB / 1.072 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.7027, allocations: 16 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.7037, allocations: 276.1 kB / 1.072 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.7038, allocations: 19.94 kB / 1.072 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.7049, allocations: 136.4 kB / 1.072 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.815e-05/0.705, allocations: 55.98 kB / 1.072 GB, free: 5.309 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 119 * Array equations: 1 * 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.0006547/0.7057, allocations: 478.1 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.7059, allocations: 169.9 kB / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002802/0.7087, allocations: 1.209 MB / 1.074 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.7087, allocations: 15.98 kB / 1.074 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.7087, allocations: 0 / 1.074 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002131/0.7109, allocations: 1.041 MB / 1.075 GB, free: 2.336 MB / 0.8262 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 postOpt removeSimpleEquations (simulation): time 0.004782/0.7157, allocations: 2.514 MB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.7157, allocations: 7.922 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008183/0.7165, allocations: 163.8 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001468/0.7167, allocations: 28.84 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.804e-05/0.7167, allocations: 23.98 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009606/0.7177, allocations: 1.315 MB / 1.079 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.7177, allocations: 0 / 1.079 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003547/0.7213, allocations: 1.674 MB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005322/0.7218, allocations: 350.6 kB / 1.081 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/0.7221, allocations: 19.88 kB / 1.081 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.7231, allocations: 123.9 kB / 1.081 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.7232, allocations: 56.42 kB / 1.081 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-05/0.7233, allocations: 27.98 kB / 1.081 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00143/0.7248, allocations: 1.081 MB / 1.082 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7248, allocations: 0 / 1.082 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002173/0.7269, allocations: 0.8615 MB / 1.083 GB, free: 9.824 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,coo.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00523/0.7322, allocations: 2.847 MB / 1.086 GB, free: 7.078 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003625/0.7358, allocations: 1.718 MB / 1.088 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.7358, allocations: 0.5625 kB / 1.088 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001248/0.7371, allocations: 0.5838 MB / 1.088 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003234/0.7403, allocations: 0.7224 MB / 1.089 GB, free: 4.027 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02223/0.7626, allocations: 13.73 MB / 1.102 GB, free: 5.348 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009565/0.7636, allocations: 1.364 MB / 1.104 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.00161/0.7652, allocations: 422 kB / 1.104 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008962/0.7661, allocations: 0.7062 MB / 1.105 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of SimCode: time 6.21e-07/0.7661, allocations: 0 / 1.105 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.221/1.987, allocations: 43.04 MB / 1.147 GB, free: 8.367 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002339/1.987, allocations: 282.4 kB / 1.147 GB, free: 7.996 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.941/4.929, allocations: 0 / 1.147 GB, free: 7.996 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1)