Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.WaterHeater_u,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",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.006438/0.006438, allocations: 104.4 kB / 15.74 MB, free: 6.031 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.001774/0.001774, allocations: 194.8 kB / 16.67 MB, free: 5.961 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.533/2.533, allocations: 469.8 MB / 0.7425 GB, free: 7.293 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 71.88 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2714, allocations: 159.1 MB / 1.22 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.5425/0.814, allocations: 67.47 MB / 1.286 GB, free: 10.36 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02628/0.8403, allocations: 18.58 MB / 1.304 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002723/0.8431, allocations: 98.72 kB / 1.304 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.004858/0.848, allocations: 1.974 MB / 1.306 GB, free: 13.35 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.006859/0.8548, allocations: 2.831 MB / 1.309 GB, free: 11.68 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.005899/0.8607, allocations: 2.433 MB / 1.311 GB, free: 10.42 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0115/0.8723, allocations: 8.281 MB / 1.319 GB, free: 7.105 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002594/0.8749, allocations: 1.935 MB / 1.321 GB, free: 6.176 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00415/0.879, allocations: 2.1 MB / 1.323 GB, free: 5.184 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001972/0.881, allocations: 1.563 MB / 1.325 GB, free: 4.438 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0003026/0.8813, allocations: 200.7 kB / 1.325 GB, free: 4.438 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004282/0.8856, allocations: 2.144 MB / 1.327 GB, free: 3.727 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0006961/0.8863, allocations: 0.6959 MB / 1.328 GB, free: 3.371 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.8877, allocations: 1.333 MB / 1.329 GB, free: 2.523 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.005148/0.8928, allocations: 4.262 MB / 1.333 GB, free: 0.8984 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.8928, allocations: 0 / 1.333 GB, free: 0.8984 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.272e-06/0.8929, allocations: 0 / 1.333 GB, free: 0.8984 MB / 1.029 GB Notification: Performance of Transformations before backend: time 2.214e-05/0.8929, allocations: 5.375 kB / 1.333 GB, free: 0.8945 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.004717/0.8976, allocations: 3.184 MB / 1.336 GB, free: 14.78 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.8976, allocations: 18.08 kB / 1.337 GB, free: 14.77 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002132/0.8979, allocations: 191.8 kB / 1.337 GB, free: 14.65 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001738/0.8996, allocations: 492.5 kB / 1.337 GB, free: 14.48 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004207/0.9038, allocations: 2.895 MB / 1.34 GB, free: 12.97 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.045e-05/0.9039, allocations: 98.53 kB / 1.34 GB, free: 12.93 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/0.9041, allocations: 145.8 kB / 1.34 GB, free: 12.88 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002458/0.9066, allocations: 1.45 MB / 1.342 GB, free: 11.93 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.9066, allocations: 1.375 kB / 1.342 GB, free: 11.93 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.9067, allocations: 57.06 kB / 1.342 GB, free: 11.89 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.692e-05/0.9068, allocations: 53.55 kB / 1.342 GB, free: 11.88 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002398/0.9092, allocations: 1.122 MB / 1.343 GB, free: 11.32 MB / 1.045 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.00888/0.9181, allocations: 7.752 MB / 1.35 GB, free: 4.414 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002023/0.9201, allocations: 1.282 MB / 1.352 GB, free: 3.426 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009283/0.9211, allocations: 453.5 kB / 1.352 GB, free: 3.207 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004257/0.9253, allocations: 2.704 MB / 1.355 GB, free: 0.8164 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009885/0.9263, allocations: 473.4 kB / 1.355 GB, free: 0.5273 MB / 1.045 GB Notification: Performance of pre-optimization done (n=62): time 1.318e-05/0.9264, allocations: 4 kB / 1.355 GB, free: 0.5234 MB / 1.045 GB Notification: Performance of matching and sorting (n=62): time 0.002851/0.9292, allocations: 1.253 MB / 1.356 GB, free: 15.84 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.304e-05/0.9293, allocations: 114.5 kB / 1.357 GB, free: 15.71 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.9318, allocations: 2.074 MB / 1.359 GB, free: 14.57 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.886e-05/0.9319, allocations: 44.36 kB / 1.359 GB, free: 14.53 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000895/0.9328, allocations: 1.042 MB / 1.36 GB, free: 13.61 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.000225/0.933, allocations: 248.3 kB / 1.36 GB, free: 13.4 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004245/0.9334, allocations: 317.2 kB / 1.36 GB, free: 13.22 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.9335, allocations: 301.1 kB / 1.36 GB, free: 12.92 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.9346, allocations: 0.5486 MB / 1.361 GB, free: 12.65 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.936, allocations: 0.9642 MB / 1.362 GB, free: 11.84 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002262/0.9383, allocations: 1.424 MB / 1.363 GB, free: 10.83 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.9383, allocations: 2.281 kB / 1.363 GB, free: 10.83 MB / 1.061 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.00297/0.9413, allocations: 1.766 MB / 1.365 GB, free: 9.934 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.9413, allocations: 36.14 kB / 1.365 GB, free: 9.902 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.9414, allocations: 11.16 kB / 1.365 GB, free: 9.902 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.9414, allocations: 17.44 kB / 1.365 GB, free: 9.902 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009903/0.9424, allocations: 307.7 kB / 1.365 GB, free: 9.824 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.403e-05/0.9424, allocations: 25.89 kB / 1.365 GB, free: 9.816 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.9435, allocations: 175.2 kB / 1.366 GB, free: 9.707 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-05/0.9436, allocations: 57.98 kB / 1.366 GB, free: 9.695 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00158/0.9452, allocations: 0.9774 MB / 1.367 GB, free: 9.137 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001365/0.9466, allocations: 0.9716 MB / 1.368 GB, free: 8.336 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002217/0.9488, allocations: 1.426 MB / 1.369 GB, free: 7.332 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.55e-06/0.9488, allocations: 4 kB / 1.369 GB, free: 7.332 MB / 1.061 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.002872/0.9517, allocations: 1.75 MB / 1.371 GB, free: 6.449 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.9517, allocations: 41.86 kB / 1.371 GB, free: 6.414 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.9517, allocations: 12.8 kB / 1.371 GB, free: 6.41 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.9518, allocations: 17.66 kB / 1.371 GB, free: 6.41 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009201/0.9527, allocations: 299 kB / 1.371 GB, free: 6.34 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.303e-05/0.9527, allocations: 32.91 kB / 1.371 GB, free: 6.324 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.9538, allocations: 160.4 kB / 1.371 GB, free: 6.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.71e-05/0.9539, allocations: 56.83 kB / 1.371 GB, free: 6.219 MB / 1.061 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 (154): * Single equations (assignments): 151 * 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.0002424/0.9541, allocations: 257.4 kB / 1.371 GB, free: 5.98 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000261/0.9544, allocations: 216.5 kB / 1.372 GB, free: 5.859 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002226/0.9566, allocations: 1.078 MB / 1.373 GB, free: 5.266 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.9567, allocations: 12.92 kB / 1.373 GB, free: 5.262 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.9567, allocations: 6.25 kB / 1.373 GB, free: 5.258 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001699/0.9584, allocations: 0.7709 MB / 1.374 GB, free: 4.855 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004487/0.9629, allocations: 2.912 MB / 1.376 GB, free: 2.848 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.9629, allocations: 2.938 kB / 1.376 GB, free: 2.848 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006629/0.9636, allocations: 155.7 kB / 1.377 GB, free: 2.809 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001316/0.9637, allocations: 34.44 kB / 1.377 GB, free: 2.785 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.071e-05/0.9638, allocations: 20.45 kB / 1.377 GB, free: 2.773 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.9649, allocations: 1.421 MB / 1.378 GB, free: 1.312 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.9649, allocations: 6.656 kB / 1.378 GB, free: 1.309 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002888/0.9678, allocations: 1.606 MB / 1.38 GB, free: 392 kB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005879/0.9684, allocations: 427.2 kB / 1.38 GB, free: 15.99 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002217/0.9686, allocations: 19.94 kB / 1.38 GB, free: 15.97 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009237/0.9695, allocations: 71.92 kB / 1.38 GB, free: 15.9 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.9696, allocations: 60.42 kB / 1.38 GB, free: 15.84 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.788e-05/0.9697, allocations: 32.11 kB / 1.38 GB, free: 15.81 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001905/0.9716, allocations: 1.454 MB / 1.382 GB, free: 14.34 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9716, allocations: 0 / 1.382 GB, free: 14.34 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.002544/0.9742, allocations: 1.115 MB / 1.383 GB, free: 13.23 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[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,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.004704/0.9789, allocations: 2.746 MB / 1.385 GB, free: 10.44 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.003717/0.9826, allocations: 2.079 MB / 1.387 GB, free: 8.344 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.9826, allocations: 4.062 kB / 1.387 GB, free: 8.34 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.9838, allocations: 0.545 MB / 1.388 GB, free: 7.777 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003898/0.9877, allocations: 1.1 MB / 1.389 GB, free: 6.707 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02119/1.009, allocations: 14.88 MB / 1.403 GB, free: 7.293 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/1.01, allocations: 1.574 MB / 1.405 GB, free: 5.684 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001507/1.012, allocations: 0.5362 MB / 1.406 GB, free: 5.145 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/1.013, allocations: 0.8898 MB / 1.406 GB, free: 4.254 MB / 1.092 GB Notification: Performance of SimCode: time 6.82e-07/1.013, allocations: 0 / 1.406 GB, free: 4.254 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.796/2.809, allocations: 59.52 MB / 1.465 GB, free: 9.488 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.34/20.15, allocations: 15.89 kB / 1.465 GB, free: 9.473 MB / 1.154 GB (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)