Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.WaterHeater_T,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_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.004905/0.004905, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001349/0.001349, allocations: 194.8 kB / 16.68 MB, free: 5.969 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.271/1.271, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.444/2.444, allocations: 482.6 MB / 0.7551 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 77.48 kB / 1.083 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2538, allocations: 162.3 MB / 1.242 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05073/0.3046, allocations: 53.81 MB / 1.294 GB, free: 2.859 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02186/0.3265, allocations: 17.02 MB / 1.311 GB, free: 1.793 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/0.328, allocations: 87.5 kB / 1.311 GB, free: 1.707 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.00384/0.3318, allocations: 1.922 MB / 1.313 GB, free: 15.78 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.004386/0.3362, allocations: 2.509 MB / 1.315 GB, free: 13.27 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.004297/0.3405, allocations: 2.345 MB / 1.318 GB, free: 10.93 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.007919/0.3485, allocations: 7.276 MB / 1.325 GB, free: 3.641 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001822/0.3503, allocations: 1.659 MB / 1.326 GB, free: 1.945 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003179/0.3535, allocations: 2.042 MB / 1.328 GB, free: 15.9 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001476/0.355, allocations: 1.392 MB / 1.33 GB, free: 14.5 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0002581/0.3552, allocations: 176 kB / 1.33 GB, free: 14.33 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003037/0.3583, allocations: 2.012 MB / 1.332 GB, free: 12.32 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0005672/0.3589, allocations: 0.6462 MB / 1.333 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.3599, allocations: 1.216 MB / 1.334 GB, free: 10.45 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.004202/0.3642, allocations: 3.915 MB / 1.338 GB, free: 6.516 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3642, allocations: 0 / 1.338 GB, free: 6.516 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3642, allocations: 4 kB / 1.338 GB, free: 6.512 MB / 1.061 GB Notification: Performance of Transformations before backend: time 2.111e-05/0.3642, allocations: 3.938 kB / 1.338 GB, free: 6.508 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004133/0.3683, allocations: 3.008 MB / 1.341 GB, free: 3.418 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.3684, allocations: 12.03 kB / 1.341 GB, free: 3.406 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001797/0.3686, allocations: 173 kB / 1.341 GB, free: 3.227 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002337/0.3709, allocations: 0.5604 MB / 1.341 GB, free: 2.664 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003977/0.3749, allocations: 2.733 MB / 1.344 GB, free: 15.86 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.541e-05/0.375, allocations: 90.2 kB / 1.344 GB, free: 15.77 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/0.3752, allocations: 123.9 kB / 1.344 GB, free: 15.65 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002405/0.3776, allocations: 1.359 MB / 1.345 GB, free: 14.19 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/0.3776, allocations: 4 kB / 1.345 GB, free: 14.19 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.3777, allocations: 44 kB / 1.346 GB, free: 14.14 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.809e-05/0.3778, allocations: 28 kB / 1.346 GB, free: 14.12 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002592/0.3804, allocations: 1.101 MB / 1.347 GB, free: 13.01 MB / 1.076 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.008066/0.3884, allocations: 7.472 MB / 1.354 GB, free: 4.953 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002459/0.3909, allocations: 1.355 MB / 1.355 GB, free: 3.48 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009403/0.3918, allocations: 430.2 kB / 1.356 GB, free: 3.059 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004078/0.3959, allocations: 3.044 MB / 1.359 GB, free: 15.67 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/0.3969, allocations: 426.9 kB / 1.359 GB, free: 15.24 MB / 1.092 GB Notification: Performance of pre-optimization done (n=57): time 3.537e-06/0.397, allocations: 0 / 1.359 GB, free: 15.24 MB / 1.092 GB Notification: Performance of matching and sorting (n=57): time 0.003088/0.4001, allocations: 1.28 MB / 1.36 GB, free: 13.94 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.4001, allocations: 55.97 kB / 1.36 GB, free: 13.87 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002443/0.4026, allocations: 2.113 MB / 1.362 GB, free: 11.73 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 6.074e-05/0.4026, allocations: 37.7 kB / 1.362 GB, free: 11.69 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008303/0.4035, allocations: 1.035 MB / 1.363 GB, free: 10.64 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/0.4036, allocations: 214.3 kB / 1.364 GB, free: 10.43 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003928/0.404, allocations: 318.6 kB / 1.364 GB, free: 10.11 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.4042, allocations: 301.1 kB / 1.364 GB, free: 9.816 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.4053, allocations: 0.5493 MB / 1.365 GB, free: 9.262 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.4068, allocations: 0.9886 MB / 1.366 GB, free: 8.09 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00238/0.4092, allocations: 1.44 MB / 1.367 GB, free: 6.48 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.4092, allocations: 4 kB / 1.367 GB, free: 6.477 MB / 1.092 GB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003119/0.4123, allocations: 1.776 MB / 1.369 GB, free: 4.688 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.4123, allocations: 36.05 kB / 1.369 GB, free: 4.648 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.4124, allocations: 12 kB / 1.369 GB, free: 4.637 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.4124, allocations: 20 kB / 1.369 GB, free: 4.617 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.4134, allocations: 307.9 kB / 1.369 GB, free: 4.316 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.343e-05/0.4134, allocations: 31.95 kB / 1.369 GB, free: 4.285 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.4145, allocations: 198.8 kB / 1.369 GB, free: 4.09 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.564e-05/0.4146, allocations: 59.98 kB / 1.37 GB, free: 4.031 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001629/0.4162, allocations: 0.9678 MB / 1.37 GB, free: 3.059 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001455/0.4177, allocations: 0.9885 MB / 1.371 GB, free: 1.883 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002365/0.4201, allocations: 1.443 MB / 1.373 GB, free: 276 kB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.933e-06/0.4201, allocations: 4 kB / 1.373 GB, free: 272 kB / 1.092 GB Notification: Performance of matching and sorting (n=185) (initialization_lambda0): time 0.003082/0.4232, allocations: 1.762 MB / 1.375 GB, free: 14.49 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.4232, allocations: 41.69 kB / 1.375 GB, free: 14.45 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.4232, allocations: 12 kB / 1.375 GB, free: 14.43 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.4233, allocations: 23.98 kB / 1.375 GB, free: 14.41 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009944/0.4242, allocations: 304.2 kB / 1.375 GB, free: 14.11 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.402e-05/0.4243, allocations: 27.92 kB / 1.375 GB, free: 14.09 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.4253, allocations: 163.3 kB / 1.375 GB, free: 13.93 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-05/0.4254, allocations: 59.98 kB / 1.375 GB, free: 13.87 MB / 1.107 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (151): * Single equations (assignments): 148 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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.0002257/0.4257, allocations: 267.8 kB / 1.375 GB, free: 13.6 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002504/0.4259, allocations: 210.6 kB / 1.376 GB, free: 13.39 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002527/0.4284, allocations: 1.134 MB / 1.377 GB, free: 12.24 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.4285, allocations: 11.98 kB / 1.377 GB, free: 12.23 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4285, allocations: 0 / 1.377 GB, free: 12.23 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001986/0.4305, allocations: 0.9621 MB / 1.378 GB, free: 11.21 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004156/0.4346, allocations: 2.582 MB / 1.38 GB, free: 8.559 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.4346, allocations: 0 / 1.38 GB, free: 8.559 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006817/0.4353, allocations: 151.8 kB / 1.38 GB, free: 8.41 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001494/0.4355, allocations: 32.84 kB / 1.38 GB, free: 8.375 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.4356, allocations: 19.98 kB / 1.38 GB, free: 8.355 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.4367, allocations: 1.489 MB / 1.382 GB, free: 6.727 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.4367, allocations: 0 / 1.382 GB, free: 6.727 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00316/0.4399, allocations: 1.572 MB / 1.383 GB, free: 5.125 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004997/0.4404, allocations: 407.3 kB / 1.384 GB, free: 4.707 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001951/0.4406, allocations: 12 kB / 1.384 GB, free: 4.695 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008258/0.4414, allocations: 67.92 kB / 1.384 GB, free: 4.629 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.4415, allocations: 48.5 kB / 1.384 GB, free: 4.582 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-05/0.4416, allocations: 39.91 kB / 1.384 GB, free: 4.543 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.001811/0.4434, allocations: 1.469 MB / 1.385 GB, free: 3.062 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4434, allocations: 0 / 1.385 GB, free: 3.062 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.002048/0.4455, allocations: 1.029 MB / 1.386 GB, free: 2.031 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (vol.dynBal.U,mov.motSpe.y,conPI.I.y,THeaOut.T,hea.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 (66): * Single equations (assignments): 57 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005444/0.4509, allocations: 2.896 MB / 1.389 GB, free: 15.24 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.003744/0.4547, allocations: 2.088 MB / 1.391 GB, free: 13.13 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4547, allocations: 1.812 kB / 1.391 GB, free: 13.13 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.4559, allocations: 0.5525 MB / 1.392 GB, free: 12.57 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003254/0.4591, allocations: 0.9614 MB / 1.393 GB, free: 11.63 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02045/0.4796, allocations: 14.65 MB / 1.407 GB, free: 12.46 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.4807, allocations: 1.531 MB / 1.409 GB, free: 10.89 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.001409/0.4821, allocations: 0.5046 MB / 1.409 GB, free: 10.39 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.4832, allocations: 0.8585 MB / 1.41 GB, free: 9.527 MB / 1.139 GB Notification: Performance of SimCode: time 2.7e-07/0.4832, allocations: 4 kB / 1.41 GB, free: 9.523 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.48/5.963, allocations: 55.84 MB / 1.464 GB, free: 2.32 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.36/46.32, allocations: 4.75 kB / 1.464 GB, free: 2.32 MB / 1.186 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)