Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 106.1 kB / 16.29 MB, free: 6.43 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.001466/0.001466, allocations: 184.6 kB / 17.22 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.822/1.822, allocations: 292.3 MB / 0.5495 GB, free: 17.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 71.89 kB / 0.6722 GB, free: 6.492 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2264, allocations: 114.6 MB / 0.7841 GB, free: 3.824 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.4256/0.652, allocations: 67.08 MB / 0.8496 GB, free: 4.871 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.03391/0.686, allocations: 19.31 MB / 0.8684 GB, free: 7.43 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004755/0.6908, allocations: 90.09 kB / 0.8685 GB, free: 7.398 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004469/0.6953, allocations: 1.214 MB / 0.8697 GB, free: 6.695 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.009376/0.7047, allocations: 2.637 MB / 0.8723 GB, free: 5.148 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.01264/0.7174, allocations: 3.744 MB / 0.8759 GB, free: 2.867 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.009449/0.7268, allocations: 5.36 MB / 0.8812 GB, free: 15.71 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004184/0.7311, allocations: 1.901 MB / 0.883 GB, free: 14.51 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00701/0.7381, allocations: 2.108 MB / 0.8851 GB, free: 13.25 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004164/0.7423, allocations: 1.489 MB / 0.8865 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001032/0.7434, allocations: 190 kB / 0.8867 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006857/0.7502, allocations: 2.105 MB / 0.8888 GB, free: 11.19 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001282/0.7516, allocations: 0.5558 MB / 0.8893 GB, free: 10.77 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003462/0.755, allocations: 1.149 MB / 0.8904 GB, free: 9.98 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.008633/0.7637, allocations: 3.772 MB / 0.8941 GB, free: 7.465 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.7637, allocations: 0 / 0.8941 GB, free: 7.465 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.333e-06/0.7637, allocations: 0 / 0.8941 GB, free: 7.465 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001079/0.7639, allocations: 0 / 0.8941 GB, free: 7.465 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.007746/0.7716, allocations: 2.722 MB / 0.8968 GB, free: 5.43 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.7717, allocations: 9.625 kB / 0.8968 GB, free: 5.43 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002001/0.7737, allocations: 375.3 kB / 0.8972 GB, free: 5.254 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004363/0.7781, allocations: 1.725 MB / 0.8988 GB, free: 3.945 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004004/0.7785, allocations: 158.7 kB / 0.899 GB, free: 3.875 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003541/0.7789, allocations: 134.5 kB / 0.8991 GB, free: 3.832 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003409/0.7823, allocations: 1.448 MB / 0.9005 GB, free: 2.879 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.597e-05/0.7823, allocations: 12.69 kB / 0.9005 GB, free: 2.867 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/0.7825, allocations: 57.05 kB / 0.9006 GB, free: 2.824 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.721e-05/0.7826, allocations: 35.47 kB / 0.9006 GB, free: 2.824 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002734/0.7853, allocations: 1.108 MB / 0.9017 GB, free: 2.195 MB / 0.6856 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.0107/0.796, allocations: 7.322 MB / 0.9089 GB, free: 10.31 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/0.7984, allocations: 1.31 MB / 0.9101 GB, free: 8.887 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000976/0.7994, allocations: 427.2 kB / 0.9106 GB, free: 8.465 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004177/0.8036, allocations: 2.308 MB / 0.9128 GB, free: 5.93 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/0.8047, allocations: 470.9 kB / 0.9133 GB, free: 5.457 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=66): time 3.426e-06/0.8047, allocations: 3.938 kB / 0.9133 GB, free: 5.453 MB / 0.7012 GB Notification: Performance of matching and sorting (n=66): time 0.003445/0.8081, allocations: 1.28 MB / 0.9145 GB, free: 4.141 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.8082, allocations: 111.4 kB / 0.9146 GB, free: 4.008 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002904/0.8111, allocations: 1.497 MB / 0.9161 GB, free: 2.512 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001332/0.8113, allocations: 45.7 kB / 0.9161 GB, free: 2.461 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001104/0.8124, allocations: 0.8997 MB / 0.917 GB, free: 1.551 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003485/0.8128, allocations: 232.7 kB / 0.9172 GB, free: 1.32 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005003/0.8133, allocations: 218.4 kB / 0.9174 GB, free: 1.098 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.8134, allocations: 349.9 kB / 0.9178 GB, free: 0.75 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009442/0.8144, allocations: 412.9 kB / 0.9182 GB, free: 356 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/0.8157, allocations: 0.7643 MB / 0.9189 GB, free: 15.42 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/0.8182, allocations: 1.135 MB / 0.92 GB, free: 14.15 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.8182, allocations: 0 / 0.92 GB, free: 14.15 MB / 0.7169 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003298/0.8215, allocations: 1.35 MB / 0.9213 GB, free: 12.78 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.542e-05/0.8216, allocations: 33.7 kB / 0.9214 GB, free: 12.74 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/0.8216, allocations: 12 kB / 0.9214 GB, free: 12.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.785e-05/0.8217, allocations: 12 kB / 0.9214 GB, free: 12.72 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.8227, allocations: 260 kB / 0.9216 GB, free: 12.46 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.09e-05/0.8228, allocations: 23.92 kB / 0.9217 GB, free: 12.44 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.8244, allocations: 143.5 kB / 0.9218 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.8246, allocations: 51.98 kB / 0.9218 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001672/0.8263, allocations: 0.7169 MB / 0.9225 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001141/0.8274, allocations: 0.7447 MB / 0.9233 GB, free: 10.62 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002059/0.8295, allocations: 1.104 MB / 0.9244 GB, free: 9.383 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.3e-05/0.8295, allocations: 4 kB / 0.9244 GB, free: 9.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=128) (initialization_lambda0): time 0.002973/0.8325, allocations: 1.319 MB / 0.9256 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.714e-05/0.8326, allocations: 33.7 kB / 0.9257 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.53e-05/0.8326, allocations: 19.92 kB / 0.9257 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.8326, allocations: 12 kB / 0.9257 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009712/0.8336, allocations: 259.6 kB / 0.926 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.402e-05/0.8336, allocations: 23.88 kB / 0.926 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.835, allocations: 123.8 kB / 0.9261 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.8351, allocations: 51.98 kB / 0.9261 GB, free: 7.527 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (124): * Single equations (assignments): 120 * Array equations: 2 * 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.0003202/0.8355, allocations: 247.9 kB / 0.9264 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004641/0.8359, allocations: 161.9 kB / 0.9265 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/0.8386, allocations: 1.128 MB / 0.9276 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.8386, allocations: 11.98 kB / 0.9276 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.8387, allocations: 0 / 0.9276 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001788/0.8405, allocations: 0.8277 MB / 0.9285 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00485/0.8453, allocations: 2.49 MB / 0.9309 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.8453, allocations: 0 / 0.9309 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007678/0.8461, allocations: 159.8 kB / 0.931 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001843/0.8463, allocations: 28.84 kB / 0.9311 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.308e-05/0.8464, allocations: 23.98 kB / 0.9311 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.8476, allocations: 1.483 MB / 0.9325 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.8476, allocations: 0 / 0.9325 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003338/0.8509, allocations: 1.583 MB / 0.9341 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007849/0.8517, allocations: 334.8 kB / 0.9344 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003401/0.8521, allocations: 15.98 kB / 0.9344 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009729/0.8531, allocations: 57.77 kB / 0.9345 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.8532, allocations: 60.52 kB / 0.9345 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.74e-05/0.8533, allocations: 35.97 kB / 0.9346 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001717/0.855, allocations: 1.001 MB / 0.9355 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8551, allocations: 0 / 0.9355 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002969/0.858, allocations: 1.017 MB / 0.9365 GB, free: 12.62 MB / 0.7325 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.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.001497/0.8595, allocations: 0.5694 MB / 0.9371 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.003482/0.863, allocations: 1.714 MB / 0.9388 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.8631, allocations: 4 kB / 0.9388 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.8642, allocations: 0.562 MB / 0.9393 GB, free: 9.73 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003408/0.8676, allocations: 0.8223 MB / 0.9401 GB, free: 8.977 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005618/0.8732, allocations: 3.115 MB / 0.9432 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/0.8745, allocations: 1.404 MB / 0.9445 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001678/0.8762, allocations: 424.9 kB / 0.9449 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004124/0.8766, allocations: 131.4 kB / 0.9451 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of SimCode: time 1.022e-06/0.8766, allocations: 0 / 0.9451 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of Templates: time 0.05974/0.9364, allocations: 33.46 MB / 0.9777 GB, free: 2.902 MB / 0.7637 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)